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-apq8064.c b/arch/arm/mach-msm/board-apq8064.c
index 6b5eee6..d9aba25 100644
--- a/arch/arm/mach-msm/board-apq8064.c
+++ b/arch/arm/mach-msm/board-apq8064.c
@@ -107,7 +107,7 @@
{
if (socinfo_init() < 0)
pr_err("socinfo_init() failed!\n");
- msm_clock_init(msm_clocks_8064_dummy, msm_num_clocks_8064_dummy);
+ msm_clock_init(&apq8064_dummy_clock_init_data);
gpiomux_init();
apq8064_device_qup_spi_gsbi5.dev.platform_data =