From b893f71010643f0f4d15a65ba8f01fe4bb3b1005 Mon Sep 17 00:00:00 2001 From: Jonghwa Lee Date: Thu, 9 Apr 2015 14:08:52 +0900 Subject: [PATCH] i2c: exynos5: Adjust initcall level to subsys_initcall. Signed-off-by: Jonghwa Lee --- drivers/i2c/busses/i2c-exynos5.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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, "); -- 2.7.4