summaryrefslogtreecommitdiff
path: root/drivers/clk/socfpga
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-08 17:39:09 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-02-09 01:13:31 +0300
commit60ea57a4338e9a43741e8136510f63cdb3b8a678 (patch)
tree13b4e767e934802f5954203725d7f24fb3b639bb /drivers/clk/socfpga
parentc7d5a46b10012e897b6b5a86fddf31674b32d081 (diff)
downloadlinux-60ea57a4338e9a43741e8136510f63cdb3b8a678.tar.xz
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: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/socfpga')
-rw-r--r--drivers/clk/socfpga/clk-pll-a10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/socfpga/clk-pll-a10.c b/drivers/clk/socfpga/clk-pll-a10.c
index 402d630bd531..35fabe1a32c3 100644
--- a/drivers/clk/socfpga/clk-pll-a10.c
+++ b/drivers/clk/socfpga/clk-pll-a10.c
@@ -74,7 +74,7 @@ static struct clk_ops clk_pll_ops = {
.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)
{
u32 reg;