msm: clock-8960: Support v2 clocks
Some new clocks (and a PLL) have been added in v2. Support the
usb_hsic clocks and csi2 clocks.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock.c b/arch/arm/mach-msm/clock.c
index fa84906..e6cc233 100644
--- a/arch/arm/mach-msm/clock.c
+++ b/arch/arm/mach-msm/clock.c
@@ -185,13 +185,16 @@
void __init msm_clock_init(struct clock_init_data *data)
{
unsigned n;
- struct clk_lookup *clock_tbl = data->table;
- size_t num_clocks = data->size;
+ struct clk_lookup *clock_tbl;
+ size_t num_clocks;
clk_init_data = data;
if (clk_init_data->init)
clk_init_data->init();
+ clock_tbl = data->table;
+ num_clocks = data->size;
+
for (n = 0; n < num_clocks; n++) {
struct clk *clk = clock_tbl[n].clk;
struct clk *parent = clk_get_parent(clk);