watchdog: convert drivers/watchdog/* to use module_platform_driver()
[deliverable/linux.git] / drivers / watchdog / omap_wdt.c
index cd269b4574d183b9408105beeea3c9fdb1eb76a6..324f525ea8d2e8bef22e0172449da4851e003ab2 100644 (file)
@@ -437,18 +437,7 @@ static struct platform_driver omap_wdt_driver = {
        },
 };
 
-static int __init omap_wdt_init(void)
-{
-       return platform_driver_register(&omap_wdt_driver);
-}
-
-static void __exit omap_wdt_exit(void)
-{
-       platform_driver_unregister(&omap_wdt_driver);
-}
-
-module_init(omap_wdt_init);
-module_exit(omap_wdt_exit);
+module_platform_driver(omap_wdt_driver);
 
 MODULE_AUTHOR("George G. Davis");
 MODULE_LICENSE("GPL");
This page took 0.030814 seconds and 5 git commands to generate.