projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea40a05
)
MIPS: constify mips_io_port_base
author
Daniel Schwierzeck
<
[email protected]
>
Wed, 12 Dec 2012 12:13:48 +0000
(13:13 +0100)
committer
Daniel Schwierzeck
<
[email protected]
>
Wed, 12 Dec 2012 12:14:16 +0000
(13:14 +0100)
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 <
[email protected]
>
arch/mips/lib/board.c
patch
|
blob
|
history
diff --git
a/arch/mips/lib/board.c
b/arch/mips/lib/board.c
index 7ddd77832cc5f165111d5b553d212002fa6d1047..4f330ccf7d7dabcbd9f2fad5e61838a6a6be17a9 100644
(file)
--- 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)
{