Commit 3810e6304185f5a5bc4bb99b0ed467a28e63e9ed
Committed by
Jason Cooper
1 parent
8758c885c4
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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 <josh.coombs@gmail.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/clk/mvebu/clk-gating-ctrl.c
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | |
33 | 33 | #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw) |
34 | 34 | |
35 | -static struct clk __init *mvebu_clk_gating_get_src( | |
35 | +static struct clk *mvebu_clk_gating_get_src( | |
36 | 36 | struct of_phandle_args *clkspec, void *data) |
37 | 37 | { |
38 | 38 | struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data; |