Skip to contentSkip to conversation

clk: efm32gg: Pass correct type to hw provider registration

PATCH Applied Stephen Boyd 1 participant 2 messages Nov 16, 2016 – Nov 17, 2016 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Stephen Boyd <[email protected]>
Cc Uwe Kleine-König <[email protected]>
Fixes 9337631f52a8 ("clk: efm32gg: Migrate to clk_hw based OF and registration APIs")
---
 drivers/clk/clk-efm32gg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk-efm32gg.c +1 -1
index 8802a2dd56ac..f674778fb3ac 100644
@@ -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);
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
author Applied
#1 lore raw
Quoted 11 lines · Stephen Boyd

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.

Cc Stephen Boyd <[email protected]>
Cc Uwe Kleine-König <[email protected]>
Fixes 9337631f52a8 ("clk: efm32gg: Migrate to clk_hw based OF and registration APIs")

---

Applied to clk-fixes

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project