]> git.baikalelectronics.ru Git - kernel.git/commit
clk: shmobile: Fix MSTP clock index
authorValentine Barshak <valentine.barshak@cogentembedded.com>
Sat, 28 Dec 2013 12:09:08 +0000 (16:09 +0400)
committerMike Turquette <mturquette@linaro.org>
Tue, 14 Jan 2014 19:35:45 +0000 (11:35 -0800)
commit50b34f2e6a3f410c4b4fef1f1350a3f16c9a7f92
treebd246d004a79b8b282feb02db284a7ee3cf8c581
parent177b1825c863e08d40b8e612d034570b48a19edf
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:
82756a24f1d0773e "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>
drivers/clk/shmobile/clk-mstp.c