msm: clock: Support multi-target compilation
Having multiple late initcalls across all the clock-$(ARCH) files
won't work when they are compiled together. Register a struct
with msm_clock_init() so that clock.c can driver the init() and
late_init() calls that need to be made per SoC.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-msm7x27a.c b/arch/arm/mach-msm/devices-msm7x27a.c
index 2e59117..f20f41b 100644
--- a/arch/arm/mach-msm/devices-msm7x27a.c
+++ b/arch/arm/mach-msm/devices-msm7x27a.c
@@ -709,7 +709,7 @@
if (cpu_is_msm7x27aa())
msm7x2x_clock_data.max_speed_delta_khz = 504000;
- msm_clock_init(msm_clocks_7x27a, msm_num_clocks_7x27a);
+ msm_clock_init(&msm7x27a_clock_init_data);
msm_acpu_clock_init(&msm7x2x_clock_data);
return 0;