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/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
index 4015fc7..2c5e9a4 100644
--- a/arch/arm/mach-msm/board-msm8x60.c
+++ b/arch/arm/mach-msm/board-msm8x60.c
@@ -9794,7 +9794,7 @@
/* Initialize regulators needed for clock_init. */
platform_add_devices(early_regulators, ARRAY_SIZE(early_regulators));
- msm8660_clock_init();
+ msm_clock_init(&msm8x60_clock_init_data);
/* Buses need to be initialized before early-device registration
* to get the platform data for fabrics.