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>
Reviewed-on: http://git-master/r/191149
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Nilesh Bhoite <nbhoite@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/power/max17048_battery.c

index a2b4ca4..ab7aee8 100644 (file)
@@ -630,7 +630,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)
 {