ARM: at91: pm: remove useless extern definition
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 27 Sep 2016 10:37:15 +0000 (12:37 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 11 Jan 2017 12:21:24 +0000 (13:21 +0100)
at91_ramc_base is local to pm.c, remove its definition in pm.h

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h

index b4332b7..3d89b79 100644 (file)
@@ -55,7 +55,7 @@ static struct {
        int memctrl;
 } at91_pm_data;
 
-void __iomem *at91_ramc_base[2];
+static void __iomem *at91_ramc_base[2];
 
 static int at91_pm_valid_state(suspend_state_t state)
 {
index 3fcf881..bf980c6 100644 (file)
@@ -18,8 +18,6 @@
 #include <soc/at91/at91sam9_sdramc.h>
 
 #ifndef __ASSEMBLY__
-extern void __iomem *at91_ramc_base[];
-
 #define at91_ramc_read(id, field) \
        __raw_readl(at91_ramc_base[id] + field)