From: Joshua Coombs Date: Sun, 6 Jan 2013 10:10:39 +0000 (+0100) Subject: clk: mvebu: Remove inappropriate __init tagging X-Git-Tag: v3.8-rc3~5^2~4^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3810e6304185f5a5bc4bb99b0ed467a28e63e9ed;p=profile%2Fcommon%2Fkernel-common.git 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. Signed-off-by: Joshua Coombs Signed-off-by: Andrew Lunn Signed-off-by: Jason Cooper --- diff --git a/drivers/clk/mvebu/clk-gating-ctrl.c b/drivers/clk/mvebu/clk-gating-ctrl.c index c6d3c26..8fa5408 100644 --- a/drivers/clk/mvebu/clk-gating-ctrl.c +++ b/drivers/clk/mvebu/clk-gating-ctrl.c @@ -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;