diff options
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/wm831x_wdt.c | 12 | ||||
-rw-r--r-- | drivers/watchdog/wm8350_wdt.c | 12 |
2 files changed, 2 insertions, 22 deletions
diff --git a/drivers/watchdog/wm831x_wdt.c b/drivers/watchdog/wm831x_wdt.c index e789a47db41f..beb3ad2294d3 100644 --- a/drivers/watchdog/wm831x_wdt.c +++ b/drivers/watchdog/wm831x_wdt.c | |||
@@ -320,17 +320,7 @@ static struct platform_driver wm831x_wdt_driver = { | |||
320 | }, | 320 | }, |
321 | }; | 321 | }; |
322 | 322 | ||
323 | static int __init wm831x_wdt_init(void) | 323 | module_platform_driver(wm831x_wdt_driver); |
324 | { | ||
325 | return platform_driver_register(&wm831x_wdt_driver); | ||
326 | } | ||
327 | module_init(wm831x_wdt_init); | ||
328 | |||
329 | static void __exit wm831x_wdt_exit(void) | ||
330 | { | ||
331 | platform_driver_unregister(&wm831x_wdt_driver); | ||
332 | } | ||
333 | module_exit(wm831x_wdt_exit); | ||
334 | 324 | ||
335 | MODULE_AUTHOR("Mark Brown"); | 325 | MODULE_AUTHOR("Mark Brown"); |
336 | MODULE_DESCRIPTION("WM831x Watchdog"); | 326 | MODULE_DESCRIPTION("WM831x Watchdog"); |
diff --git a/drivers/watchdog/wm8350_wdt.c b/drivers/watchdog/wm8350_wdt.c index b68d928c8f90..909c78650d3e 100644 --- a/drivers/watchdog/wm8350_wdt.c +++ b/drivers/watchdog/wm8350_wdt.c | |||
@@ -311,17 +311,7 @@ static struct platform_driver wm8350_wdt_driver = { | |||
311 | }, | 311 | }, |
312 | }; | 312 | }; |
313 | 313 | ||
314 | static int __init wm8350_wdt_init(void) | 314 | module_platform_driver(wm8350_wdt_driver); |
315 | { | ||
316 | return platform_driver_register(&wm8350_wdt_driver); | ||
317 | } | ||
318 | module_init(wm8350_wdt_init); | ||
319 | |||
320 | static void __exit wm8350_wdt_exit(void) | ||
321 | { | ||
322 | platform_driver_unregister(&wm8350_wdt_driver); | ||
323 | } | ||
324 | module_exit(wm8350_wdt_exit); | ||
325 | 315 | ||
326 | MODULE_AUTHOR("Mark Brown"); | 316 | MODULE_AUTHOR("Mark Brown"); |
327 | MODULE_DESCRIPTION("WM8350 Watchdog"); | 317 | MODULE_DESCRIPTION("WM8350 Watchdog"); |