aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/mtx-1_wdt.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-29 00:56:27 -0500
committerWim Van Sebroeck <wim@iguana.be>2012-01-06 09:17:25 -0500
commitb8ec61189f3b4cd9d1b2856342f5d7676151d01c (patch)
tree0493dabe92429616ad27d725a9139a69ebe9b83b /drivers/watchdog/mtx-1_wdt.c
parent1334f32938e46fb321c67a652997d33583257249 (diff)
watchdog: convert drivers/watchdog/* to use module_platform_driver()
This patch converts the drivers in drivers/watchdog/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Nicolas Thill <nico@openwrt.org> Cc: Florian Fainelli <florian@openwrt.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Paul Cercueil <paul@crapouillou.net> Cc: Marc Zyngier <maz@misterjones.org> Cc: Wan ZongShun <mcuos.com@gmail.com> Cc: Alejandro Cabrera <aldaya@gmail.com> Cc: "George G. Davis" <gdavis@mvista.com> Cc: Sylver Bruneau <sylver.bruneau@googlemail.com> Cc: Vitaly Wool <vital@embeddedalley.com> Cc: Mika Westerberg <mika.westerberg@iki.fi> Cc: Timo Kokkonen <timo.t.kokkonen@nokia.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/mtx-1_wdt.c')
-rw-r--r--drivers/watchdog/mtx-1_wdt.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c
index ac37bb82392c..c29e31d99fe8 100644
--- a/drivers/watchdog/mtx-1_wdt.c
+++ b/drivers/watchdog/mtx-1_wdt.c
@@ -253,18 +253,7 @@ static struct platform_driver mtx1_wdt_driver = {
253 .driver.owner = THIS_MODULE, 253 .driver.owner = THIS_MODULE,
254}; 254};
255 255
256static int __init mtx1_wdt_init(void) 256module_platform_driver(mtx1_wdt_driver);
257{
258 return platform_driver_register(&mtx1_wdt_driver);
259}
260
261static void __exit mtx1_wdt_exit(void)
262{
263 platform_driver_unregister(&mtx1_wdt_driver);
264}
265
266module_init(mtx1_wdt_init);
267module_exit(mtx1_wdt_exit);
268 257
269MODULE_AUTHOR("Michael Stickel, Florian Fainelli"); 258MODULE_AUTHOR("Michael Stickel, Florian Fainelli");
270MODULE_DESCRIPTION("Driver for the MTX-1 watchdog"); 259MODULE_DESCRIPTION("Driver for the MTX-1 watchdog");