diff options
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/ath79_wdt.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c index 7c8ede7816b1..38a999e60c0d 100644 --- a/drivers/watchdog/ath79_wdt.c +++ b/drivers/watchdog/ath79_wdt.c | |||
@@ -284,6 +284,7 @@ static void ath97_wdt_shutdown(struct platform_device *pdev) | |||
284 | } | 284 | } |
285 | 285 | ||
286 | static struct platform_driver ath79_wdt_driver = { | 286 | static struct platform_driver ath79_wdt_driver = { |
287 | .probe = ath79_wdt_probe, | ||
287 | .remove = ath79_wdt_remove, | 288 | .remove = ath79_wdt_remove, |
288 | .shutdown = ath97_wdt_shutdown, | 289 | .shutdown = ath97_wdt_shutdown, |
289 | .driver = { | 290 | .driver = { |
@@ -292,17 +293,7 @@ static struct platform_driver ath79_wdt_driver = { | |||
292 | }, | 293 | }, |
293 | }; | 294 | }; |
294 | 295 | ||
295 | static int __init ath79_wdt_init(void) | 296 | module_platform_driver(ath79_wdt_driver); |
296 | { | ||
297 | return platform_driver_probe(&ath79_wdt_driver, ath79_wdt_probe); | ||
298 | } | ||
299 | module_init(ath79_wdt_init); | ||
300 | |||
301 | static void __exit ath79_wdt_exit(void) | ||
302 | { | ||
303 | platform_driver_unregister(&ath79_wdt_driver); | ||
304 | } | ||
305 | module_exit(ath79_wdt_exit); | ||
306 | 297 | ||
307 | MODULE_DESCRIPTION("Atheros AR71XX/AR724X/AR913X hardware watchdog driver"); | 298 | MODULE_DESCRIPTION("Atheros AR71XX/AR724X/AR913X hardware watchdog driver"); |
308 | MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org"); | 299 | MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org"); |