diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-10-06 11:59:59 -0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-10-17 15:31:59 -0700 |
commit | 1c7032258d568f9a7aeb4c541786699d9a219a2a (patch) | |
tree | ea34267c94309683982f1039de38de3736b9dfc4 /drivers/mfd/fsl-imx25-tsadc.c | |
parent | 981e1bea55e56abdb16505502e4a69ff868e87d3 (diff) | |
download | talos-obmc-linux-1c7032258d568f9a7aeb4c541786699d9a219a2a.tar.gz talos-obmc-linux-1c7032258d568f9a7aeb4c541786699d9a219a2a.zip |
clk: max77686: fix number of clocks setup for clk_hw based registration
The commit 9b4cac33adc7 ("clk: max77686: Migrate to clk_hw based OF and
registration APIs") converted the driver to use the new provider API to
register clocks using clk_hw.
But unfortunately, in the conversion it missed to set the num_clks value
which lead to the following error when trying to register a clk provider:
[ 1.963782] of_clk_max77686_get: invalid index 0
[ 1.967460] ERROR: could not get clock /rtc@10070000:rtc_src(1)
[ 1.973638] s3c-rtc 10070000.rtc: failed to find rtc source clock
Fix it by correctly set the max77686_clk_driver_data num_clks member.
Fixes: 9b4cac33adc7 ("clk: max77686: Migrate to clk_hw based OF and registration APIs")
Reported-by: Markus Reichl <m.reichl@fivetechno.de>
Suggested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/mfd/fsl-imx25-tsadc.c')
0 files changed, 0 insertions, 0 deletions