Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Replace obsolete strict_strto call with kstrto

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: linux-kernel@vger.kernel.org
Cc: richard@nod.at
Cc: akpm@linux-foundation.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Daniel Walter and committed by
Ralf Baechle
8ca635bf b4f16c93

+3 -3
+1 -1
arch/mips/alchemy/board-xxs1500.c
··· 49 49 prom_init_cmdline(); 50 50 51 51 memsize_str = prom_getenv("memsize"); 52 - if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize)) 52 + if (!memsize_str || kstrtoul(memsize_str, 0, &memsize)) 53 53 memsize = 0x04000000; 54 54 55 55 add_memory_region(0, memsize, BOOT_MEM_RAM);
+2 -2
arch/mips/alchemy/devboards/pm.c
··· 158 158 int tmp; 159 159 160 160 if (ATTRCMP(timer_timeout)) { 161 - tmp = strict_strtoul(instr, 0, &l); 161 + tmp = kstrtoul(instr, 0, &l); 162 162 if (tmp) 163 163 return tmp; 164 164 ··· 181 181 } 182 182 183 183 } else if (ATTRCMP(wakemsk)) { 184 - tmp = strict_strtoul(instr, 0, &l); 184 + tmp = kstrtoul(instr, 0, &l); 185 185 if (tmp) 186 186 return tmp; 187 187