Skip to content

Commit

Permalink
clk: shmobile: Fix MSTP clock index
Browse files Browse the repository at this point in the history
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:
f94859c "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>
  • Loading branch information
vbce authored and Mike Turquette committed Jan 14, 2014
1 parent 6b71e0d commit 6413b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/shmobile/clk-mstp.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
continue;
}

clks[clkidx] = cpg_mstp_clock_register(name, parent_name, i,
group);
clks[clkidx] = cpg_mstp_clock_register(name, parent_name,
clkidx, group);
if (!IS_ERR(clks[clkidx])) {
group->data.clk_num = max(group->data.clk_num, clkidx);
/*
Expand Down

0 comments on commit 6413b09

Please sign in to comment.