aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/rbtx4927/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/txx9/rbtx4927/setup.c')
-rw-r--r--arch/mips/txx9/rbtx4927/setup.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/arch/mips/txx9/rbtx4927/setup.c b/arch/mips/txx9/rbtx4927/setup.c
index 54c33c3e9f7d..f01af382e9a8 100644
--- a/arch/mips/txx9/rbtx4927/setup.c
+++ b/arch/mips/txx9/rbtx4927/setup.c
@@ -328,30 +328,11 @@ static int __init rbtx4927_ne_init(void)
328 return IS_ERR(dev) ? PTR_ERR(dev) : 0; 328 return IS_ERR(dev) ? PTR_ERR(dev) : 0;
329} 329}
330 330
331/* Watchdog support */
332
333static int __init txx9_wdt_init(unsigned long base)
334{
335 struct resource res = {
336 .start = base,
337 .end = base + 0x100 - 1,
338 .flags = IORESOURCE_MEM,
339 };
340 struct platform_device *dev =
341 platform_device_register_simple("txx9wdt", -1, &res, 1);
342 return IS_ERR(dev) ? PTR_ERR(dev) : 0;
343}
344
345static int __init rbtx4927_wdt_init(void)
346{
347 return txx9_wdt_init(TX4927_TMR_REG(2) & 0xfffffffffULL);
348}
349
350static void __init rbtx4927_device_init(void) 331static void __init rbtx4927_device_init(void)
351{ 332{
352 toshiba_rbtx4927_rtc_init(); 333 toshiba_rbtx4927_rtc_init();
353 rbtx4927_ne_init(); 334 rbtx4927_ne_init();
354 rbtx4927_wdt_init(); 335 tx4927_wdt_init();
355} 336}
356 337
357struct txx9_board_vec rbtx4927_vec __initdata = { 338struct txx9_board_vec rbtx4927_vec __initdata = {