clk: at91: Silence warnings and cleanup __init/extern usage
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 6 Jul 2015 19:10:51 +0000 (12:10 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 8 Jul 2015 00:19:31 +0000 (17:19 -0700)
commita8a8db47990d9b3789a30f4ab6744ce83f733c85
tree43da41df87d700eeb9fb14b112b8d4d89a97b72e
parentadb11a40a3ac5225ce3746a62c2a7ebde42ec04e
clk: at91: Silence warnings and cleanup __init/extern usage

Remove useless ifdefs around function prototypes to silence the
following sparse warnings when the configs aren't enabled.

drivers/clk/at91/clk-h32mx.c:95:13: warning: symbol
'of_sama5d4_clk_h32mx_setup' was not declared. Should it be
static?
drivers/clk/at91/clk-utmi.c:159:13: warning: symbol
'of_at91sam9x5_clk_utmi_setup' was not declared. Should it be
static?

Plus, using __init and extern in function prototypes doesn't do
anything, so just drop it throughout this file.

Acked-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/pmc.h