From: Horst Kronstorfer Date: Wed, 13 Mar 2013 10:14:05 +0000 (+0000) Subject: mpc85xx: Fix a compiler warning when CONFIG_WATCHDOG is turned on X-Git-Tag: v2025.01-rc5-pxa1908~15849^2~73^2~10 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=df616cae64561ba4773a75469b425698346c4ce8;p=u-boot.git 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 Signed-off-by: Andy Fleming --- 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 @@ -281,14 +281,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 */ /*