From 484ae56de093443d01db9aee35655c1922721365 Mon Sep 17 00:00:00 2001 From: Jajambo Liao Date: Mon, 23 Jun 2014 18:29:44 +0800 Subject: input: misc: change module init priority. 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 Reviewed-on: http://git-master/r/427137 Reviewed-by: Erik Lilliebjerg Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sang-Hun Lee Reviewed-by: Jordan Nien Reviewed-by: Robert Collins Tested-by: Robert Collins Reviewed-by: Mitch Luban --- drivers/input/misc/compass/ak8975_input.c | 2 +- drivers/input/misc/pressure/bmp180.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/input') diff --git a/drivers/input/misc/compass/ak8975_input.c b/drivers/input/misc/compass/ak8975_input.c index d92d02c07639..49c37b912f54 100644 --- a/drivers/input/misc/compass/ak8975_input.c +++ b/drivers/input/misc/compass/ak8975_input.c @@ -1543,7 +1543,7 @@ static void __exit akm_exit(void) i2c_del_driver(&akm_driver); } -module_init(akm_init); +late_initcall(akm_init); module_exit(akm_exit); MODULE_LICENSE("GPL"); diff --git a/drivers/input/misc/pressure/bmp180.c b/drivers/input/misc/pressure/bmp180.c index 5b198eb9a8a8..a7b901d7d8bc 100644 --- a/drivers/input/misc/pressure/bmp180.c +++ b/drivers/input/misc/pressure/bmp180.c @@ -1771,7 +1771,7 @@ static void __exit bmp_exit(void) i2c_del_driver(&bmp_driver); } -module_init(bmp_init); +late_initcall(bmp_init); module_exit(bmp_exit); MODULE_LICENSE("GPL"); -- cgit v1.2.3