Skip to content
Snippets Groups Projects
Commit f8bbba56 authored by Gao Pan's avatar Gao Pan Committed by Dong Aisheng
Browse files

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


use subsys_initcall for i2c driver to improve i2c driver probe priority

Signed-off-by: default avatarGao Pan <pandy.gao@nxp.com>
(cherry picked from commit 3661eef8)
(cherry picked from commit 9c867985)
parent 3c3e15ab
No related branches found
No related tags found
No related merge requests found
......@@ -704,7 +704,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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment