diff options
Diffstat (limited to 'arch/mips/ath79/dev-common.c')
-rw-r--r-- | arch/mips/ath79/dev-common.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/mips/ath79/dev-common.c b/arch/mips/ath79/dev-common.c index 9516aab27139..a3a2741d0688 100644 --- a/arch/mips/ath79/dev-common.c +++ b/arch/mips/ath79/dev-common.c | |||
@@ -102,12 +102,15 @@ void __init ath79_register_uart(void) | |||
102 | } | 102 | } |
103 | } | 103 | } |
104 | 104 | ||
105 | static struct platform_device ath79_wdt_device = { | ||
106 | .name = "ath79-wdt", | ||
107 | .id = -1, | ||
108 | }; | ||
109 | |||
110 | void __init ath79_register_wdt(void) | 105 | void __init ath79_register_wdt(void) |
111 | { | 106 | { |
112 | platform_device_register(&ath79_wdt_device); | 107 | struct resource res; |
108 | |||
109 | memset(&res, 0, sizeof(res)); | ||
110 | |||
111 | res.flags = IORESOURCE_MEM; | ||
112 | res.start = AR71XX_RESET_BASE + AR71XX_RESET_REG_WDOG_CTRL; | ||
113 | res.end = res.start + 0x8 - 1; | ||
114 | |||
115 | platform_device_register_simple("ath79-wdt", -1, &res, 1); | ||
113 | } | 116 | } |