Commit 8ca635bf authored by Daniel Walter's avatar Daniel Walter Committed by Ralf Baechle

MIPS: Replace obsolete strict_strto call with kstrto

Signed-off-by: default avatarDaniel Walter <dwalter@google.com>
Cc: linux-kernel@vger.kernel.org
Cc: richard@nod.at
Cc: akpm@linux-foundation.org
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b4f16c93
...@@ -49,7 +49,7 @@ void __init prom_init(void) ...@@ -49,7 +49,7 @@ void __init prom_init(void)
prom_init_cmdline(); prom_init_cmdline();
memsize_str = prom_getenv("memsize"); memsize_str = prom_getenv("memsize");
if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize)) if (!memsize_str || kstrtoul(memsize_str, 0, &memsize))
memsize = 0x04000000; memsize = 0x04000000;
add_memory_region(0, memsize, BOOT_MEM_RAM); add_memory_region(0, memsize, BOOT_MEM_RAM);
......
...@@ -158,7 +158,7 @@ static ssize_t db1x_pmattr_store(struct kobject *kobj, ...@@ -158,7 +158,7 @@ static ssize_t db1x_pmattr_store(struct kobject *kobj,
int tmp; int tmp;
if (ATTRCMP(timer_timeout)) { if (ATTRCMP(timer_timeout)) {
tmp = strict_strtoul(instr, 0, &l); tmp = kstrtoul(instr, 0, &l);
if (tmp) if (tmp)
return tmp; return tmp;
...@@ -181,7 +181,7 @@ static ssize_t db1x_pmattr_store(struct kobject *kobj, ...@@ -181,7 +181,7 @@ static ssize_t db1x_pmattr_store(struct kobject *kobj,
} }
} else if (ATTRCMP(wakemsk)) { } else if (ATTRCMP(wakemsk)) {
tmp = strict_strtoul(instr, 0, &l); tmp = kstrtoul(instr, 0, &l);
if (tmp) if (tmp)
return tmp; return tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment