]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/watchdog/ar7_wdt.c
watchdog: convert drivers/watchdog/* to use module_platform_driver()
[karo-tx-linux.git] / drivers / watchdog / ar7_wdt.c
index b9564c5ddab98c2acf466b326b2b57e154e2fa0e..502773ad5acda8889ec5c0770ac38702d6db16de 100644 (file)
@@ -353,15 +353,4 @@ static struct platform_driver ar7_wdt_driver = {
        },
 };
 
-static int __init ar7_wdt_init(void)
-{
-       return platform_driver_register(&ar7_wdt_driver);
-}
-
-static void __exit ar7_wdt_cleanup(void)
-{
-       platform_driver_unregister(&ar7_wdt_driver);
-}
-
-module_init(ar7_wdt_init);
-module_exit(ar7_wdt_cleanup);
+module_platform_driver(ar7_wdt_driver);