Skip to contentSkip to conversation

clk: mvebu: Remove inappropriate __init tagging

PATCH New Joshua Coombs 1 participant 1 message Jan 5, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 clk: mvebu: Remove inappropriate __init tagging

If the Orion WDT driver is built as a module, an opps occurs during clk lookup when calling mvebu_clk_gating_get_src(). Remove the inappropriate __init tag so the function is available for modules after kernel init.

---
This is a fix for a bug and is intended for 3.8-rc

 drivers/clk/mvebu/clk-gating-ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/mvebu/clk-gating-ctrl.c +1 -1
index c6d3c26..8fa5408 100644
@@ -32,7 +32,7 @@ struct mvebu_soc_descr {
 
 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
 
-static struct clk __init *mvebu_clk_gating_get_src(
+static struct clk *mvebu_clk_gating_get_src(
 	struct of_phandle_args *clkspec, void *data)
 {
 	struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data;
Signature · 1 line
1.8.0.2