aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/ath79/dev-common.c10
-rw-r--r--arch/mips/ath79/dev-common.h1
-rw-r--r--arch/mips/ath79/setup.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/ath79/dev-common.c b/arch/mips/ath79/dev-common.c
index 3cfa10065d68..3b82e325bebf 100644
--- a/arch/mips/ath79/dev-common.c
+++ b/arch/mips/ath79/dev-common.c
@@ -65,3 +65,13 @@ void __init ath79_register_uart(void)
65 ath79_uart_data[0].uartclk = clk_get_rate(clk); 65 ath79_uart_data[0].uartclk = clk_get_rate(clk);
66 platform_device_register(&ath79_uart_device); 66 platform_device_register(&ath79_uart_device);
67} 67}
68
69static struct platform_device ath79_wdt_device = {
70 .name = "ath79-wdt",
71 .id = -1,
72};
73
74void __init ath79_register_wdt(void)
75{
76 platform_device_register(&ath79_wdt_device);
77}
diff --git a/arch/mips/ath79/dev-common.h b/arch/mips/ath79/dev-common.h
index 248622cc7cd6..0f514e1affce 100644
--- a/arch/mips/ath79/dev-common.h
+++ b/arch/mips/ath79/dev-common.h
@@ -13,5 +13,6 @@
13#define _ATH79_DEV_COMMON_H 13#define _ATH79_DEV_COMMON_H
14 14
15void ath79_register_uart(void); 15void ath79_register_uart(void);
16void ath79_register_wdt(void);
16 17
17#endif /* _ATH79_DEV_COMMON_H */ 18#endif /* _ATH79_DEV_COMMON_H */
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 5e5740298709..159b42f106b0 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -186,6 +186,7 @@ static int __init ath79_setup(void)
186{ 186{
187 ath79_gpio_init(); 187 ath79_gpio_init();
188 ath79_register_uart(); 188 ath79_register_uart();
189 ath79_register_wdt();
189 190
190 mips_machine_setup(); 191 mips_machine_setup();
191 192