Commit 60ea57a4 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Stephen Boyd

clk: socfpga: fix __init annotation

clang found a bug with the __socfpga_pll_init definition:

drivers/clk/socfpga/clk-pll-a10.c:77:15: error: '__section__' attribute only applies to functions and
      global variables

This moves the __init annotation to the right place so the function
actually gets discarded.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent c7d5a46b
...@@ -74,7 +74,7 @@ static struct clk_ops clk_pll_ops = { ...@@ -74,7 +74,7 @@ static struct clk_ops clk_pll_ops = {
.get_parent = clk_pll_get_parent, .get_parent = clk_pll_get_parent,
}; };
static struct __init clk * __socfpga_pll_init(struct device_node *node, static struct clk * __init __socfpga_pll_init(struct device_node *node,
const struct clk_ops *ops) const struct clk_ops *ops)
{ {
u32 reg; u32 reg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment