Skip to contentSkip to conversation

replace obsolete strict_strto

PATCH Superseded Daniel Walter 1 participant 1 message Jun 3, 2014

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/11 replace obsolete strict_strto

From: Daniel Walter <[email protected]>
Subject: [PATCH v2 04/11] [arch/arm/mach-w90x900] replace obsolete strict_strto

Replace obsolete strict_strto with kstrto calls

---
 arch/arm/mach-w90x900/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-w90x900/cpu.c +2 -1
index b1eabaa..213230ee 100644
@@ -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");
 
Signature · 1 line
1.9.3