power: max17048: use subsys_initcall
Syed Rafiuddin [Tue, 15 Jan 2013 07:27:58 +0000 (12:27 +0530)]
use subsys_initcall in max17048 fuel-gauge driver

Change-Id: Ied62719e758e34ae11f130f90fe956d81a31227b
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/191149
(cherry picked from commit e0a9793e93ea7f25f4b7e5e7ea48a4ba91907548)
Reviewed-on: http://git-master/r/201659
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/power/max17048_battery.c

index c4693b7..993be2c 100644 (file)
@@ -632,7 +632,7 @@ static int __init max17048_init(void)
 {
        return i2c_add_driver(&max17048_i2c_driver);
 }
-module_init(max17048_init);
+subsys_initcall(max17048_init);
 
 static void __exit max17048_exit(void)
 {