Skip to contentSkip to conversation

mpc85xx: Fix a compiler warning when CONFIG_WATCHDOG is turned on

PATCH Superseded Horst Kronstorfer 1 participant 1 message Feb 15, 2013 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]

---
 arch/powerpc/cpu/mpc85xx/cpu.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
arch/powerpc/cpu/mpc85xx/cpu.c +8 -8
index df2ab6d..0f2d867 100644
@@ -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,14 @@ 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 */
 
 /*
Signature · 1 line
1.8.1.3