[PATCH 2/3] OMAP: Initialize PM and SmartReflex after TWL probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use late_initcall_sync and omap_late_initcall_sync for sr_init and
omap2_common_pm_late_init respectively.

This prevents the following errors during SmartReflex initialization:
 twl: not initialized
 omap3_twl_set_sr_bit: Error access to TWL4030 (-1)

Signed-off-by: André Roth <neolynx@xxxxxxxxx>
---
 arch/arm/mach-omap2/pm.c        | 2 +-
 drivers/power/avs/smartreflex.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 1fde1bf53fb6..ec86f35ae040 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -261,4 +261,4 @@ int __init omap2_common_pm_late_init(void)
 
 	return 0;
 }
-omap_late_initcall(omap2_common_pm_late_init);
+omap_late_initcall_sync(omap2_common_pm_late_init);
diff --git a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c
index 4684e7df833a..71ca5e4825b5 100644
--- a/drivers/power/avs/smartreflex.c
+++ b/drivers/power/avs/smartreflex.c
@@ -1031,7 +1031,7 @@ static int __init sr_init(void)
 
 	return 0;
 }
-late_initcall(sr_init);
+late_initcall_sync(sr_init);
 
 static void __exit sr_exit(void)
 {
-- 
2.17.1




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux