drivers: misc: therm_est: use late_initcall_sync
Jinyoung Park [Thu, 26 Sep 2013 06:43:16 +0000 (15:43 +0900)]
Changed module_init() to late_initcall_sync() for therm_est driver
to ensure therm_est driver registration after complete
all thermal_zone driver registration.

Bug 1375775

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/279213
(cherry picked from commit 92870f67cbaf5753b9f6f24787f11fce84399fbd)

Change-Id: I0b70d1d14a40540056dbf2b07a16657f766d00a3
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301046
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

drivers/misc/therm_est.c

index 51bfb7f..2aa725e 100644 (file)
@@ -1065,4 +1065,4 @@ static int __init therm_est_driver_init(void)
 {
        return platform_driver_register(&therm_est_driver);
 }
-module_init(therm_est_driver_init);
+late_initcall_sync(therm_est_driver_init);