diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-07-12 07:47:40 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-07-23 06:50:51 -0400 |
commit | 6b761b2902c56b468370e0ee1691c37e0dae042a (patch) | |
tree | 6f904f5a5886c85b7350acf31f7d9dd864a2481d /drivers/watchdog | |
parent | 7732c6b96f127bb5d9474715149b4e94e369412c (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.c | 16 |
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 | 522 | module_platform_driver(s3c2410wdt_driver); | |
523 | static 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 | |||
530 | static void __exit watchdog_exit(void) | ||
531 | { | ||
532 | platform_driver_unregister(&s3c2410wdt_driver); | ||
533 | } | ||
534 | |||
535 | module_init(watchdog_init); | ||
536 | module_exit(watchdog_exit); | ||
537 | 523 | ||
538 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, " | 524 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, " |
539 | "Dimitry Andric <dimitry.andric@tomtom.com>"); | 525 | "Dimitry Andric <dimitry.andric@tomtom.com>"); |