OSDN Git Service

clk: socfpga: fix __init annotation
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Feb 2016 14:39:09 +0000 (15:39 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 8 Feb 2016 22:13:31 +0000 (14:13 -0800)
commit60ea57a4338e9a43741e8136510f63cdb3b8a678
tree13b4e767e934802f5954203725d7f24fb3b639bb
parentc7d5a46b10012e897b6b5a86fddf31674b32d081
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>
drivers/clk/socfpga/clk-pll-a10.c