Skip to content

Commit

Permalink
watchdog: s3c2410_wdt: Use module_platform_driver()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Wim Van Sebroeck committed Jul 23, 2012
1 parent 7732c6b commit 6b761b2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
Expand Down

0 comments on commit 6b761b2

Please sign in to comment.