summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-07-12 17:17:40 +0530
committerWim Van Sebroeck <wim@iguana.be>2012-07-23 12:50:51 +0200
commit6b761b2902c56b468370e0ee1691c37e0dae042a (patch)
tree6f904f5a5886c85b7350acf31f7d9dd864a2481d /drivers/watchdog
parent7732c6b96f127bb5d9474715149b4e94e369412c (diff)
downloadlinux-stable-6b761b2902c56b468370e0ee1691c37e0dae042a.tar.gz
linux-stable-6b761b2902c56b468370e0ee1691c37e0dae042a.tar.bz2
linux-stable-6b761b2902c56b468370e0ee1691c37e0dae042a.zip
watchdog: s3c2410_wdt: Use module_platform_driver()
module_platform_driver() replaces module_init() and module_exit() and makes the code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/s3c2410_wdt.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index 200ece5e2a22..9245b4d23bfe 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -519,21 +519,7 @@ static struct platform_driver s3c2410wdt_driver = {
},
};
-
-static int __init watchdog_init(void)
-{
- pr_info("S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics\n");
-
- return platform_driver_register(&s3c2410wdt_driver);
-}
-
-static void __exit watchdog_exit(void)
-{
- platform_driver_unregister(&s3c2410wdt_driver);
-}
-
-module_init(watchdog_init);
-module_exit(watchdog_exit);
+module_platform_driver(s3c2410wdt_driver);
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, "
"Dimitry Andric <dimitry.andric@tomtom.com>");