summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/wm831x_wdt.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 15:22:36 +0000
committerWim Van Sebroeck <wim@iguana.be>2012-01-06 15:16:18 +0100
commit216f3ad9aa5731024b9c96e63b676f9f65078dd5 (patch)
tree7e6fa824b498fe4059c3326b3afce4083a4d94cf /drivers/watchdog/wm831x_wdt.c
parent07d106d0a33d6063d2061305903deb02489eba20 (diff)
downloadblackbird-op-linux-216f3ad9aa5731024b9c96e63b676f9f65078dd5.tar.gz
blackbird-op-linux-216f3ad9aa5731024b9c96e63b676f9f65078dd5.zip
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/wm831x_wdt.c')
-rw-r--r--drivers/watchdog/wm831x_wdt.c12
1 files changed, 1 insertions, 11 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 = {
},
};
-static int __init wm831x_wdt_init(void)
-{
- return platform_driver_register(&wm831x_wdt_driver);
-}
-module_init(wm831x_wdt_init);
-
-static void __exit wm831x_wdt_exit(void)
-{
- platform_driver_unregister(&wm831x_wdt_driver);
-}
-module_exit(wm831x_wdt_exit);
+module_platform_driver(wm831x_wdt_driver);
MODULE_AUTHOR("Mark Brown");
MODULE_DESCRIPTION("WM831x Watchdog");
OpenPOWER on IntegriCloud