diff options
author | Jajambo Liao <jajambol@nvidia.com> | 2014-06-23 18:29:44 +0800 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2014-06-26 23:39:29 -0700 |
commit | 484ae56de093443d01db9aee35655c1922721365 (patch) | |
tree | 09862b58ac56469bdf949f52f724257697b01ab3 /drivers/input | |
parent | 191b49cdb6b45c50972a0e6a0c350b0ba2a11702 (diff) |
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 <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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/compass/ak8975_input.c | 2 | ||||
-rw-r--r-- | drivers/input/misc/pressure/bmp180.c | 2 |
2 files changed, 2 insertions, 2 deletions
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"); |