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
parent
0a084db3f2
commit
52cf4d0464
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue