]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
MIPS: Malta: make a needlessly global integer variable static
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Sun, 22 Mar 2009 22:12:27 +0000 (00:12 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 30 Mar 2009 12:49:45 +0000 (14:49 +0200)
The variable `mips_revision_corid' is needlessly defined global in
arch/mips/mti-malta/malta-init.c, and this patch makes it static.

Build-tested with malta_defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mips-boards/generic.h
arch/mips/mti-malta/malta-init.c

index 7f0b034dd9a5fa19d766a3300b4ff3e1dd4ab70f..c0da1a881e3da030170fa010189d35ca33e9324e 100644 (file)
@@ -71,8 +71,6 @@
 
 #define MIPS_REVISION_CORID (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 10) & 0x3f)
 
-extern int mips_revision_corid;
-
 #define MIPS_REVISION_SCON_OTHER          0
 #define MIPS_REVISION_SCON_SOCITSC        1
 #define MIPS_REVISION_SCON_SOCITSCP       2
index 4832af2516680d4ac653ac31017f6a6960bab0d6..475038a141a65038ee34792a6d06395010004a93 100644 (file)
@@ -48,7 +48,7 @@ int *_prom_argv, *_prom_envp;
 
 int init_debug = 0;
 
-int mips_revision_corid;
+static int mips_revision_corid;
 int mips_revision_sconid;
 
 /* Bonito64 system controller register base. */