Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
},
};
-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>");