i2c: exynos5: Adjust initcall level to subsys_initcall.
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Thu, 9 Apr 2015 05:08:52 +0000 (14:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:43:14 +0000 (13:43 +0900)
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/i2c/busses/i2c-exynos5.c

index f54ece8..73d9b10 100644 (file)
@@ -881,7 +881,17 @@ static struct platform_driver exynos5_i2c_driver = {
        },
 };
 
-module_platform_driver(exynos5_i2c_driver);
+static int __init i2c_exynos5_init(void)
+{
+       return platform_driver_register(&exynos5_i2c_driver);
+}
+subsys_initcall(i2c_exynos5_init);
+
+static void __exit i2c_exynos5_exit(void)
+{
+       platform_driver_unregister(&exynos5_i2c_driver);
+}
+module_exit(i2c_exynos5_exit);
 
 MODULE_DESCRIPTION("Exynos5 HS-I2C Bus driver");
 MODULE_AUTHOR("Naveen Krishna Chatradhi, <ch.naveen@samsung.com>");