Patchwork [U-Boot] MIPS: constify mips_io_port_base

login
register
mail settings
Submitter Daniel Schwierzeck
Date Dec. 12, 2012, 12:34 p.m.
Message ID <1355315655-15881-1-git-send-email-daniel.schwierzeck@gmail.com>
Download mbox | patch
Permalink /patch/205498/
State Accepted
Delegated to: Daniel Schwierzeck
Headers show

Comments

Daniel Schwierzeck - Dec. 12, 2012, 12:34 p.m.
mips_io_port_base is exported as 'extern const unsigned long mips_io_port_base;'
in arch/mips/include/asm/io.h. Thus make the variable const too.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
---
 arch/mips/lib/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c
index 7ddd778..4f330cc 100644
--- a/arch/mips/lib/board.c
+++ b/arch/mips/lib/board.c
@@ -46,7 +46,7 @@  static char *failed = "*** failed ***\n";
  * mips_io_port_base is the begin of the address space to which x86 style
  * I/O ports are mapped.
  */
-unsigned long mips_io_port_base = -1;
+const unsigned long mips_io_port_base = -1;
 
 int __board_early_init_f(void)
 {