Skip to content
Snippets Groups Projects
Commit df616cae authored by Horst Kronstorfer's avatar Horst Kronstorfer Committed by Andy Fleming
Browse files

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: default avatarHorst Kronstorfer <hkronsto@frequentis.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 99d7b0a4
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment