[MIPS] TXx9: Cleanup watchdog
Unify registration of txx9wdt platform device. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
a49297e8fc
commit
683147254e
@@ -21,7 +21,7 @@
|
||||
#include <asm/txx9/generic.h>
|
||||
#include <asm/txx9/tx4927.h>
|
||||
|
||||
void __init tx4927_wdr_init(void)
|
||||
static void __init tx4927_wdr_init(void)
|
||||
{
|
||||
/* clear WatchDogReset (W1C) */
|
||||
tx4927_ccfg_set(TX4927_CCFG_WDRST);
|
||||
@@ -29,6 +29,11 @@ void __init tx4927_wdr_init(void)
|
||||
tx4927_ccfg_set(TX4927_CCFG_WR);
|
||||
}
|
||||
|
||||
void __init tx4927_wdt_init(void)
|
||||
{
|
||||
txx9_wdt_init(TX4927_TMR_REG(2) & 0xfffffffffULL);
|
||||
}
|
||||
|
||||
static struct resource tx4927_sdram_resource[4];
|
||||
|
||||
void __init tx4927_setup(void)
|
||||
|
Reference in New Issue
Block a user