Commit 6b761b29 authored by Sachin Kamat's avatar Sachin Kamat Committed by Wim Van Sebroeck

watchdog: s3c2410_wdt: Use module_platform_driver()

module_platform_driver() replaces module_init() and module_exit()
and makes the code simpler.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 7732c6b9
...@@ -519,21 +519,7 @@ static struct platform_driver s3c2410wdt_driver = { ...@@ -519,21 +519,7 @@ static struct platform_driver s3c2410wdt_driver = {
}, },
}; };
module_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_AUTHOR("Ben Dooks <ben@simtec.co.uk>, " MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, "
"Dimitry Andric <dimitry.andric@tomtom.com>"); "Dimitry Andric <dimitry.andric@tomtom.com>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment