diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
| commit | a8931ef380c92d121ae74ecfb03b2d63f72eea6f (patch) | |
| tree | 980fb6b019e11e6cb1ece55b7faff184721a8053 /arch/mips/au1000/pb1000/init.c | |
| parent | 90574d0a4d4b73308ae54a2a57a4f3f1fa98e984 (diff) | |
| parent | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (diff) | |
| download | olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.tar.xz olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/mips/au1000/pb1000/init.c')
| -rw-r--r-- | arch/mips/au1000/pb1000/init.c | 20 | 
1 files changed, 9 insertions, 11 deletions
diff --git a/arch/mips/au1000/pb1000/init.c b/arch/mips/au1000/pb1000/init.c index 549447df71d..3837365d613 100644 --- a/arch/mips/au1000/pb1000/init.c +++ b/arch/mips/au1000/pb1000/init.c @@ -1,10 +1,9 @@  /*   * BRIEF MODULE DESCRIPTION - *	PB1000 board setup + *	Pb1000 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 @@ -44,16 +43,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 = 0x04000000; -	} else { -		memsize = simple_strtol(memsize_str, NULL, 0); -	} +	else +		memsize = strict_strtol(memsize_str, 0, NULL);  	add_memory_region(0, memsize, BOOT_MEM_RAM);  }  |