Skip to content

Commit

Permalink
MIPS: Malta: make a needlessly global integer variable static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
dmvo authored and ralfbaechle committed Mar 30, 2009
1 parent b72b709 commit d0cdfe2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions arch/mips/include/asm/mips-boards/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mti-malta/malta-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit d0cdfe2

Please sign in to comment.