change compass & pressure module init priority as
late_initcall.
That can make sure compass & pressure will be loaded
after mpu driver.
- modify CONFIG_INV_MPU, CONFIG_INV_AKM8975, CONFIG_INV_BMP180
to be "=y", build those module as static library
- remove "insmod inv-mpu.ko", "insmod inv-ak8975.ko"
"insmod inv-bmp180.ko" command from init script
- set init priority of akm89xx/bmp180 as late_initcall
That will make sure system always loaded akm89xx/bmp180 after
inv-mpu module when those modules was builded as static library.
Bug
1468040
Change-Id: I98785f826d1ea48227b24d03e40a01f6ecc2f243
Signed-off-by: Jajambo Liao <jajambol@nvidia.com>
Reviewed-on: http://git-master/r/427137
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
i2c_del_driver(&akm_driver);
}
-module_init(akm_init);
+late_initcall(akm_init);
module_exit(akm_exit);
MODULE_LICENSE("GPL");
i2c_del_driver(&bmp_driver);
}
-module_init(bmp_init);
+late_initcall(bmp_init);
module_exit(bmp_exit);
MODULE_LICENSE("GPL");