1
0
Fork 0

MLK-16220 lpi2c: imx8: improve i2c driver probe priority

use subsys_initcall for i2c driver to improve i2c driver probe priority

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
pull/10/head
Gao Pan 2017-08-10 17:32:39 +08:00 committed by Jason Liu
parent 0a084db3f2
commit 52cf4d0464
1 changed files with 11 additions and 1 deletions

View File

@ -691,7 +691,17 @@ static struct platform_driver lpi2c_imx_driver = {
},
};
module_platform_driver(lpi2c_imx_driver);
static int __init lpi2c_imx_init(void)
{
return platform_driver_register(&lpi2c_imx_driver);
}
subsys_initcall(lpi2c_imx_init);
static void __exit lpi2c_imx_exit(void)
{
platform_driver_unregister(&lpi2c_imx_driver);
}
module_exit(lpi2c_imx_exit);
MODULE_AUTHOR("Gao Pan <pandy.gao@nxp.com>");
MODULE_DESCRIPTION("I2C adapter driver for LPI2C bus");