]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mvebu: armada-37xx-periph: Fix the clock provider registration
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 29 Sep 2016 14:28:55 +0000 (16:28 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 17 Oct 2016 22:31:49 +0000 (15:31 -0700)
commit9a0fc74166faedb6fe57df27bbbc9663ce2065d0
tree46b022783dbb1c8c7188d009b466e97689b056a1
parent5404fa9eb0b2d68faf0b1288b16400a1a2dbb02b
clk: mvebu: armada-37xx-periph: Fix the clock provider registration

While trying using a peripheral clock on a driver, I saw that the clock
pointer returned by the provider was NULL.

The problem was a missing indirection. It was the pointer stored in the
hws array which needed to be updated not the value it contains.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Fixes: 86cb8f31f6d7 ("clk: mvebu: Add the peripheral clock driver for Armada 3700")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/armada-37xx-periph.c