提交 3810e630 编写于 作者: J Joshua Coombs 提交者: Jason Cooper

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: NJoshua Coombs <josh.coombs@gmail.com>
Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NJason Cooper <jason@lakedaemon.net>
上级 8758c885
...@@ -32,7 +32,7 @@ struct mvebu_soc_descr { ...@@ -32,7 +32,7 @@ struct mvebu_soc_descr {
#define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw) #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 of_phandle_args *clkspec, void *data)
{ {
struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data; struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册