aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/au1000/pb1200/init.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 22:29:14 +0200
committerIngo Molnar <mingo@elte.hu>2008-05-12 22:29:14 +0200
commit5aaca7a7a5db157530d195c4b93c8fc4682f8a48 (patch)
tree1c9a2a7e898c8a460bc10d7f3c5c8308188c0072 /arch/mips/au1000/pb1200/init.c
parent8c6b0ef2ea1bb42cd72d987389297f66cd25790b (diff)
parent9404ef02974a5411687b6c1b8ef3984305620e02 (diff)
Merge branch 'linus' into x86/urgent
Diffstat (limited to 'arch/mips/au1000/pb1200/init.c')
-rw-r--r--arch/mips/au1000/pb1200/init.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/mips/au1000/pb1200/init.c b/arch/mips/au1000/pb1200/init.c
index 72af5500660..09fd63b8606 100644
--- a/arch/mips/au1000/pb1200/init.c
+++ b/arch/mips/au1000/pb1200/init.c
@@ -3,9 +3,8 @@
* BRIEF MODULE DESCRIPTION
* PB1200 board setup
*
- * Copyright 2001 MontaVista Software Inc.
- * Author: MontaVista Software, Inc.
- * ppopov@mvista.com or source@mvista.com
+ * Copyright 2001, 2008 MontaVista Software Inc.
+ * Author: MontaVista Software, Inc. <source@mvista.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -45,16 +44,15 @@ void __init prom_init(void)
unsigned char *memsize_str;
unsigned long memsize;
- prom_argc = (int) fw_arg0;
- prom_argv = (char **) fw_arg1;
- prom_envp = (char **) fw_arg2;
+ prom_argc = (int)fw_arg0;
+ prom_argv = (char **)fw_arg1;
+ prom_envp = (char **)fw_arg2;
prom_init_cmdline();
memsize_str = prom_getenv("memsize");
- if (!memsize_str) {
+ if (!memsize_str)
memsize = 0x08000000;
- } else {
- memsize = simple_strtol(memsize_str, NULL, 0);
- }
+ else
+ memsize = strict_strtol(memsize_str, 0, NULL);
add_memory_region(0, memsize, BOOT_MEM_RAM);
}