]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/watchdog/max63xx_wdt.c
watchdog: wafer5823wdt: Fix handling WDIOS_DISABLECARD/WDIOS_ENABLECARD options
[mv-sheeva.git] / drivers / watchdog / max63xx_wdt.c
index 73ba2fd8e591435c485bfa2574d2d8b2d70bf274..af63ecfbfa6f4c132082f856d7fd80d0d7d61ae5 100644 (file)
@@ -364,18 +364,7 @@ static struct platform_driver max63xx_wdt_driver = {
        },
 };
 
-static int __init max63xx_wdt_init(void)
-{
-       return platform_driver_register(&max63xx_wdt_driver);
-}
-
-static void __exit max63xx_wdt_exit(void)
-{
-       platform_driver_unregister(&max63xx_wdt_driver);
-}
-
-module_init(max63xx_wdt_init);
-module_exit(max63xx_wdt_exit);
+module_platform_driver(max63xx_wdt_driver);
 
 MODULE_AUTHOR("Marc Zyngier <maz@misterjones.org>");
 MODULE_DESCRIPTION("max63xx Watchdog Driver");