diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-27 09:38:25 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-03-01 06:22:29 -0500 |
commit | 0f2ad9ed7c6fecb008372e8a709595a2a21059aa (patch) | |
tree | 72042d4dd40ca8b85d7b8072b2482f0f974b8391 /arch/mips | |
parent | 5071a88475b758bf60191e53606463fe7290c71e (diff) |
MIPS: ath79: use dynamically allocated watchdog device
Remove the static watchdog device variable and use
the 'platform_device_register_simple' helper to
allocate and register the device in one step.
This allows us to save a few bytes in the kernel image.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/ath79/dev-common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/mips/ath79/dev-common.c b/arch/mips/ath79/dev-common.c index 45efc63b08b6..2093b1b2a1d1 100644 --- a/arch/mips/ath79/dev-common.c +++ b/arch/mips/ath79/dev-common.c | |||
@@ -101,12 +101,7 @@ void __init ath79_register_uart(void) | |||
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
104 | static struct platform_device ath79_wdt_device = { | ||
105 | .name = "ath79-wdt", | ||
106 | .id = -1, | ||
107 | }; | ||
108 | |||
109 | void __init ath79_register_wdt(void) | 104 | void __init ath79_register_wdt(void) |
110 | { | 105 | { |
111 | platform_device_register(&ath79_wdt_device); | 106 | platform_device_register_simple("ath79-wdt", -1, NULL, 0); |
112 | } | 107 | } |