diff options
author | Valentine Barshak <valentine.barshak@cogentembedded.com> | 2013-12-28 07:09:08 -0500 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-01-14 14:35:45 -0500 |
commit | 6413b090dedd8da4753453d25668098e5bc1f4e4 (patch) | |
tree | bd246d004a79b8b282feb02db284a7ee3cf8c581 /drivers/clk | |
parent | 6b71e0d9d6bfd24d2426a4ea7edf3c01d872903f (diff) |
clk: shmobile: Fix MSTP clock index
Use clkidx when registering MSTP clocks instead of loop counter
since the value is then used to access the specific clock index bit
in the mstp register.
The issue was introduced by the following commit:
f94859c215b6d977 "clk: shmobile: Add MSTP clock support"
Changes in V2:
* none
Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/shmobile/clk-mstp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c index e576b60de20e..be7d0174cbfc 100644 --- a/drivers/clk/shmobile/clk-mstp.c +++ b/drivers/clk/shmobile/clk-mstp.c | |||
@@ -205,8 +205,8 @@ static void __init cpg_mstp_clocks_init(struct device_node *np) | |||
205 | continue; | 205 | continue; |
206 | } | 206 | } |
207 | 207 | ||
208 | clks[clkidx] = cpg_mstp_clock_register(name, parent_name, i, | 208 | clks[clkidx] = cpg_mstp_clock_register(name, parent_name, |
209 | group); | 209 | clkidx, group); |
210 | if (!IS_ERR(clks[clkidx])) { | 210 | if (!IS_ERR(clks[clkidx])) { |
211 | group->data.clk_num = max(group->data.clk_num, clkidx); | 211 | group->data.clk_num = max(group->data.clk_num, clkidx); |
212 | /* | 212 | /* |