[COMMON] watchdog: s3c2410_wdt: moved to subsys_initcall for quick reset support
authorChangki Kim <changki.kim@samsung.com>
Mon, 9 Apr 2018 07:27:26 +0000 (16:27 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Fri, 11 May 2018 01:20:30 +0000 (10:20 +0900)
Change-Id: I5497efbf663640122722431e9c1b8b8b5ad8a850
Signed-off-by: Changki Kim <changki.kim@samsung.com>
drivers/watchdog/s3c2410_wdt.c

index cfd1d38df4ead569e8cd8d48b0f0c92d22c7c752..5bae3c9d3d73d40ab3758d5a7daf4c7fc7e1d7f6 100644 (file)
@@ -1468,7 +1468,11 @@ static struct platform_driver s3c2410wdt_driver = {
        },
 };
 
-module_platform_driver(s3c2410wdt_driver);
+int __init s3c2410wdt_init(void)
+{
+       return platform_driver_register(&s3c2410wdt_driver);
+}
+subsys_initcall(s3c2410wdt_init);
 
 MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>, Dimitry Andric <dimitry.andric@tomtom.com>");
 MODULE_DESCRIPTION("S3C2410 Watchdog Device Driver");