]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arch/arm/mach-w90x900/cpu.c: replace obsolete strict_strto
authorDaniel Walter <dwalter@google.com>
Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 27 Jun 2014 04:21:47 +0000 (14:21 +1000)
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>
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");