diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 10:22:36 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-01-06 09:16:18 -0500 |
commit | 216f3ad9aa5731024b9c96e63b676f9f65078dd5 (patch) | |
tree | 7e6fa824b498fe4059c3326b3afce4083a4d94cf /drivers/watchdog/wm8350_wdt.c | |
parent | 07d106d0a33d6063d2061305903deb02489eba20 (diff) |
watchdog: Convert Wolfson drivers to module_platform_driver
Factors out some boilerplate code.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/wm8350_wdt.c')
-rw-r--r-- | drivers/watchdog/wm8350_wdt.c | 12 |
1 files changed, 1 insertions, 11 deletions
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"); |