aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-07-12 07:47:40 -0400
committerWim Van Sebroeck <wim@iguana.be>2012-07-23 06:50:51 -0400
commit6b761b2902c56b468370e0ee1691c37e0dae042a (patch)
tree6f904f5a5886c85b7350acf31f7d9dd864a2481d /drivers/watchdog
parent7732c6b96f127bb5d9474715149b4e94e369412c (diff)
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 = {
519 }, 519 },
520}; 520};
521 521
522 522module_platform_driver(s3c2410wdt_driver);
523static int __init watchdog_init(void)
524{
525 pr_info("S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics\n");
526
527 return platform_driver_register(&s3c2410wdt_driver);
528}
529
530static void __exit watchdog_exit(void)
531{
532 platform_driver_unregister(&s3c2410wdt_driver);
533}
534
535module_init(watchdog_init);
536module_exit(watchdog_exit);
537 523
538MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, " 524MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, "
539 "Dimitry Andric <dimitry.andric@tomtom.com>"); 525 "Dimitry Andric <dimitry.andric@tomtom.com>");