diff options
author | Julia Lawall <julia@diku.dk> | 2008-11-25 08:12:32 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-01-11 04:57:19 -0500 |
commit | 2bd2dd059ca7406a030bace8dccdb25f635578c1 (patch) | |
tree | 505426d1faa78e128eb4aedd2cc7c4b384979d4c /arch/mips/alchemy/pb1000/init.c | |
parent | 797c3f322454f5994e88b0e0bfc34cd4ad521d38 (diff) |
MIPS: Alchemy: Change strict_strtol to strict_strtoul
Since memsize is unsigned, it would seem better to use strict_strtoul that
strict_strtol.
A simplified version of the semantic patch that makes this change is as
follows: (http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@s2@
long e;
position p;
@@
strict_strtol@p(...,&e)
@@
position p != s2.p;
type T;
T e;
@@
- strict_strtol@p
+ strict_strtoul
(...,&e)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/pb1000/init.c')
-rw-r--r-- | arch/mips/alchemy/pb1000/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/alchemy/pb1000/init.c b/arch/mips/alchemy/pb1000/init.c index 8a9c7d57208d..640055b8ac66 100644 --- a/arch/mips/alchemy/pb1000/init.c +++ b/arch/mips/alchemy/pb1000/init.c | |||
@@ -52,6 +52,6 @@ void __init prom_init(void) | |||
52 | if (!memsize_str) | 52 | if (!memsize_str) |
53 | memsize = 0x04000000; | 53 | memsize = 0x04000000; |
54 | else | 54 | else |
55 | strict_strtol(memsize_str, 0, &memsize); | 55 | strict_strtoul(memsize_str, 0, &memsize); |
56 | add_memory_region(0, memsize, BOOT_MEM_RAM); | 56 | add_memory_region(0, memsize, BOOT_MEM_RAM); |
57 | } | 57 | } |