summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHorst Kronstorfer <hkronsto@frequentis.com>2013-03-13 10:14:05 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-02 16:56:44 -0500
commitdf616cae64561ba4773a75469b425698346c4ce8 (patch)
treebdb8289882d2e0ad6a7235d5b9b29d6f674b3845 /arch
parent99d7b0a43ddec619739f38dc6a92777a4595182c (diff)
downloadblackbird-obmc-uboot-df616cae64561ba4773a75469b425698346c4ce8.tar.gz
blackbird-obmc-uboot-df616cae64561ba4773a75469b425698346c4ce8.zip
mpc85xx: Fix a compiler warning when CONFIG_WATCHDOG is turned on
cpu.c:288:2: warning: implicit declaration of function 'reset_85xx_watchdog' [-Wimplicit-function-declaration] Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/cpu/mpc85xx/cpu.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c
index df2ab6d73c..6ce483e17a 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu.c
@@ -282,14 +282,6 @@ unsigned long get_tbclk (void)
#if defined(CONFIG_WATCHDOG)
void
-watchdog_reset(void)
-{
- int re_enable = disable_interrupts();
- reset_85xx_watchdog();
- if (re_enable) enable_interrupts();
-}
-
-void
reset_85xx_watchdog(void)
{
/*
@@ -297,6 +289,16 @@ reset_85xx_watchdog(void)
*/
mtspr(SPRN_TSR, TSR_WIS);
}
+
+void
+watchdog_reset(void)
+{
+ int re_enable = disable_interrupts();
+
+ reset_85xx_watchdog();
+ if (re_enable)
+ enable_interrupts();
+}
#endif /* CONFIG_WATCHDOG */
/*
OpenPOWER on IntegriCloud