* [PATCH] watchdog: s3c2410_wdt: Use module_platform_driver()
@ 2012-07-12 11:47 Sachin Kamat
2012-07-12 17:43 ` Wim Van Sebroeck
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-07-12 11:47 UTC (permalink / raw)
To: linux-watchdog; +Cc: wim, ben-linux, sachin.kamat, patches
module_platform_driver() replaces module_init() and module_exit()
and makes the code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
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 200ece5..9245b4d 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>");
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] watchdog: s3c2410_wdt: Use module_platform_driver()
2012-07-12 11:47 [PATCH] watchdog: s3c2410_wdt: Use module_platform_driver() Sachin Kamat
@ 2012-07-12 17:43 ` Wim Van Sebroeck
0 siblings, 0 replies; 2+ messages in thread
From: Wim Van Sebroeck @ 2012-07-12 17:43 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-watchdog, ben-linux, patches
Hi Sachin,
> module_platform_driver() replaces module_init() and module_exit()
> and makes the code simpler.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Added to linux-watchdog-next.
Kind regards,
Wim.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-12 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 11:47 [PATCH] watchdog: s3c2410_wdt: Use module_platform_driver() Sachin Kamat
2012-07-12 17:43 ` Wim Van Sebroeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.