mvebu: add inital support for Marvell Armada XP/370 SoCs
[openwrt/openwrt.git] / target / linux / mvebu / patches-3.8 / 001-clk_mvebu_remove_inappropriate_init_tagging.patch
1 From: Joshua Coombs <josh.coombs@gmail.com>
2
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
6 after kernel init.
7
8 Signed-off-by: Joshua Coombs <josh.coombs@gmail.com>
9 Signed-off-by: Andrew Lunn <andrew@lunn.ch>
10 ---
11 drivers/clk/mvebu/clk-gating-ctrl.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
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 {
19
20 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
21
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)
25 {
26 struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data;
27 --
28 1.7.10.4