1 From: Joshua Coombs <josh.coombs@gmail.com>
3 If the Orion WDT driver is built as a module, an opps occurs during
4 clk lookup when calling mvebu_clk_gating_get_src(). Remove the
5 inappropriate __init tag so the function is available for modules
8 Signed-off-by: Joshua Coombs <josh.coombs@gmail.com>
9 Signed-off-by: Andrew Lunn <andrew@lunn.ch>
11 drivers/clk/mvebu/clk-gating-ctrl.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/drivers/clk/mvebu/clk-gating-ctrl.c b/drivers/clk/mvebu/clk-gating-ctrl.c
15 index c6d3c26..8fa5408 100644
16 --- a/drivers/clk/mvebu/clk-gating-ctrl.c
17 +++ b/drivers/clk/mvebu/clk-gating-ctrl.c
18 @@ -32,7 +32,7 @@ struct mvebu_soc_descr {
20 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
22 -static struct clk __init *mvebu_clk_gating_get_src(
23 +static struct clk *mvebu_clk_gating_get_src(
24 struct of_phandle_args *clkspec, void *data)
26 struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data;