Browse Source

ARM: at91: pm: remove useless extern definition

at91_ramc_base is local to pm.c, remove its definition in pm.h

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Alexandre Belloni 9 years ago
parent
commit
6cc7fbdf8d
2 changed files with 1 additions and 3 deletions
  1. 1 1
      arch/arm/mach-at91/pm.c
  2. 0 2
      arch/arm/mach-at91/pm.h

+ 1 - 1
arch/arm/mach-at91/pm.c

@@ -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)
 {

+ 0 - 2
arch/arm/mach-at91/pm.h

@@ -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)