diff options
author | Kevin Hickey <khickey@rmicorp.com> | 2008-07-28 14:09:26 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-30 16:54:34 -0400 |
commit | fd7ccfa7ac64156a5c1c906e0986b73d481b6dfc (patch) | |
tree | 3c94f7de26bdcb0ddd73edf42a0bdb893fbe125c /arch/mips/au1000/mtx-1 | |
parent | af6dc22b03a95c31b690f299b2fd7acb279fe7f5 (diff) |
[MIPS] Initialization of Alchemy boards
An earlier update changed some calls from simple_strotl to strict_strtol but
did not account for the differences in the syntax between the calls.
simple_strotl returns the integer; strict_strtol returns an error code and
takes a pointer to the result. As it was, NULL was being passed in place of
the result, which led to failures during kernel initialization when using
YAMON.
Signed-off-by: Kevin Hickey <khickey@rmicorp.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000/mtx-1')
-rw-r--r-- | arch/mips/au1000/mtx-1/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/au1000/mtx-1/init.c b/arch/mips/au1000/mtx-1/init.c index 33a4aebe0cba..3bae13c28954 100644 --- a/arch/mips/au1000/mtx-1/init.c +++ b/arch/mips/au1000/mtx-1/init.c | |||
@@ -55,6 +55,6 @@ void __init prom_init(void) | |||
55 | if (!memsize_str) | 55 | if (!memsize_str) |
56 | memsize = 0x04000000; | 56 | memsize = 0x04000000; |
57 | else | 57 | else |
58 | memsize = strict_strtol(memsize_str, 0, NULL); | 58 | strict_strtol(memsize_str, 0, &memsize); |
59 | add_memory_region(0, memsize, BOOT_MEM_RAM); | 59 | add_memory_region(0, memsize, BOOT_MEM_RAM); |
60 | } | 60 | } |