Skip to content

Commit

Permalink
clk: mvebu: Remove inappropriate __init tagging
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joshua Coombs authored and Jason Cooper committed Jan 6, 2013
1 parent 8758c88 commit 3810e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/mvebu/clk-gating-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3810e63

Please sign in to comment.