OSDN Git Service

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)
commit981e1bea55e56abdb16505502e4a69ff868e87d3
tree46b022783dbb1c8c7188d009b466e97689b056a1
parent339e1e54891c339b30023c9cc8a005cbf65a3c0c
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: 8ca4746a78ab ("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