From: Jonghwa Lee Date: Thu, 9 Apr 2015 05:08:52 +0000 (+0900) Subject: i2c: exynos5: Adjust initcall level to subsys_initcall. X-Git-Tag: accepted/tizen/common/20161219.151653~1193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b893f71010643f0f4d15a65ba8f01fe4bb3b1005;p=platform%2Fkernel%2Flinux-exynos.git i2c: exynos5: Adjust initcall level to subsys_initcall. Signed-off-by: Jonghwa Lee --- diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index f54ece8..73d9b10 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -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, ");