arch/arm/mach-w90x900/cpu.c: replace obsolete strict_strto
authorDaniel Walter <dwalter@google.com>
Fri, 8 Aug 2014 21:23:59 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:28 +0000 (15:57 -0700)
Replace obsolete strict_strto with kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/mach-w90x900/cpu.c

index b1eabaad50a5a2358dae8e98ffbd1d9f187aa73c..213230ee57d13cf19c2e6617eb5efd3bed1b1d45 100644 (file)
@@ -178,7 +178,8 @@ static int __init nuc900_set_cpufreq(char *str)
        if (!*str)
                return 0;
 
-       strict_strtoul(str, 0, &cpufreq);
+       if (kstrtoul(str, 0, &cpufreq))
+               return 0;
 
        nuc900_clock_source(NULL, "ext");