summaryrefslogtreecommitdiff
path: root/drivers/clk/berlin/bg2.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-11-16 22:02:00 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-11-16 22:04:17 +0300
commit3ca0b51decf780ce6277b088a9f28cd6fb71e372 (patch)
tree3649f02495c45329772a25752d43608bcafe7f7d /drivers/clk/berlin/bg2.c
parent10f2bfb092e3b49000526c02cfe8b2abbbdbb752 (diff)
downloadlinux-3ca0b51decf780ce6277b088a9f28cd6fb71e372.tar.xz
clk: berlin: Pass correct type to hw provider registration
Dan Carpenter reports that we're passing a pointer to a pointer here when we should just be passing a pointer. Pass the right pointer so that the of_clk_hw_onecell_get() sees the appropriate data pointer on its end. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Jisheng Zhang <jszhang@marvell.com> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Cc: Stephen Boyd <stephen.boyd@linaro.org> Fixes: f6475e298297 ("clk: berlin: Migrate to clk_hw based registration and OF APIs") Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/berlin/bg2.c')
-rw-r--r--drivers/clk/berlin/bg2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/berlin/bg2.c b/drivers/clk/berlin/bg2.c
index edf3b96b3b73..1d99292e2039 100644
--- a/drivers/clk/berlin/bg2.c
+++ b/drivers/clk/berlin/bg2.c
@@ -685,7 +685,7 @@ static void __init berlin2_clock_setup(struct device_node *np)
}
/* register clk-provider */
- of_clk_add_hw_provider(np, of_clk_hw_onecell_get, &clk_data);
+ of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
return;