diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-11-16 20:02:00 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-11-16 20:08:55 +0100 |
commit | bdfdabfedc30c9574dde6198a1739d2be03bf934 (patch) | |
tree | af2fcad030864b54f42b1101d30b06c403952862 /drivers/clk/clk-efm32gg.c | |
parent | clk: berlin: Pass correct type to hw provider registration (diff) | |
download | linux-bdfdabfedc30c9574dde6198a1739d2be03bf934.tar.xz linux-bdfdabfedc30c9574dde6198a1739d2be03bf934.zip |
clk: efm32gg: 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: Stephen Boyd <stephen.boyd@linaro.org>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 9337631f52a8 ("clk: efm32gg: Migrate to clk_hw based OF and registration APIs")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk-efm32gg.c')
-rw-r--r-- | drivers/clk/clk-efm32gg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-efm32gg.c b/drivers/clk/clk-efm32gg.c index 8802a2dd56ac..f674778fb3ac 100644 --- a/drivers/clk/clk-efm32gg.c +++ b/drivers/clk/clk-efm32gg.c @@ -82,6 +82,6 @@ static void __init efm32gg_cmu_init(struct device_node *np) hws[clk_HFPERCLKDAC0] = clk_hw_register_gate(NULL, "HFPERCLK.DAC0", "HFXO", 0, base + CMU_HFPERCLKEN0, 17, 0, NULL); - 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); } CLK_OF_DECLARE(efm32ggcmu, "efm32gg,cmu", efm32gg_cmu_init); |