mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-11 21:56:21 +09:00
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>
This commit is contained in:
parent
99d7b0a43d
commit
df616cae64
|
@ -281,14 +281,6 @@ unsigned long get_tbclk (void)
|
||||||
|
|
||||||
|
|
||||||
#if defined(CONFIG_WATCHDOG)
|
#if defined(CONFIG_WATCHDOG)
|
||||||
void
|
|
||||||
watchdog_reset(void)
|
|
||||||
{
|
|
||||||
int re_enable = disable_interrupts();
|
|
||||||
reset_85xx_watchdog();
|
|
||||||
if (re_enable) enable_interrupts();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
reset_85xx_watchdog(void)
|
reset_85xx_watchdog(void)
|
||||||
{
|
{
|
||||||
|
@ -297,6 +289,16 @@ reset_85xx_watchdog(void)
|
||||||
*/
|
*/
|
||||||
mtspr(SPRN_TSR, TSR_WIS);
|
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 */
|
#endif /* CONFIG_WATCHDOG */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user