diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-29 00:56:27 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-01-06 09:17:25 -0500 |
commit | b8ec61189f3b4cd9d1b2856342f5d7676151d01c (patch) | |
tree | 0493dabe92429616ad27d725a9139a69ebe9b83b /drivers/watchdog/omap_wdt.c | |
parent | 1334f32938e46fb321c67a652997d33583257249 (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/omap_wdt.c')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index cd269b4574d1..324f525ea8d2 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
@@ -437,18 +437,7 @@ static struct platform_driver omap_wdt_driver = { | |||
437 | }, | 437 | }, |
438 | }; | 438 | }; |
439 | 439 | ||
440 | static int __init omap_wdt_init(void) | 440 | module_platform_driver(omap_wdt_driver); |
441 | { | ||
442 | return platform_driver_register(&omap_wdt_driver); | ||
443 | } | ||
444 | |||
445 | static void __exit omap_wdt_exit(void) | ||
446 | { | ||
447 | platform_driver_unregister(&omap_wdt_driver); | ||
448 | } | ||
449 | |||
450 | module_init(omap_wdt_init); | ||
451 | module_exit(omap_wdt_exit); | ||
452 | 441 | ||
453 | MODULE_AUTHOR("George G. Davis"); | 442 | MODULE_AUTHOR("George G. Davis"); |
454 | MODULE_LICENSE("GPL"); | 443 | MODULE_LICENSE("GPL"); |