]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
input: misc: change module init priority.
authorJajambo Liao <jajambol@nvidia.com>
Mon, 23 Jun 2014 10:29:44 +0000 (18:29 +0800)
committerMandar Padmawar <mpadmawar@nvidia.com>
Fri, 27 Jun 2014 06:39:29 +0000 (23:39 -0700)
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>
drivers/input/misc/compass/ak8975_input.c
drivers/input/misc/pressure/bmp180.c

index d92d02c076399bfd94fc976cb78b1b5c08420fb5..49c37b912f54552aa98cbe068140e3e281cd2ea1 100644 (file)
@@ -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");
index 5b198eb9a8a8e855e9dbb5b0194be510cc5b0155..a7b901d7d8bca14320730c9b228a0f6f66aed501 100644 (file)
@@ -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");