Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi...
[firefly-linux-kernel-4.4.55.git] / drivers / watchdog / wm8350_wdt.c
index b68d928c8f90fcf259c141b22f4fb7fa84729f84..909c78650d3e8942e7b7c3bb70de90d7c208f9fc 100644 (file)
@@ -311,17 +311,7 @@ static struct platform_driver wm8350_wdt_driver = {
        },
 };
 
-static int __init wm8350_wdt_init(void)
-{
-       return platform_driver_register(&wm8350_wdt_driver);
-}
-module_init(wm8350_wdt_init);
-
-static void __exit wm8350_wdt_exit(void)
-{
-       platform_driver_unregister(&wm8350_wdt_driver);
-}
-module_exit(wm8350_wdt_exit);
+module_platform_driver(wm8350_wdt_driver);
 
 MODULE_AUTHOR("Mark Brown");
 MODULE_DESCRIPTION("WM8350 Watchdog");