Skip to contentSkip to conversation

tty: replace strict_strtoul() with kstrtoul()

PATCH New Jingoo Han 1 participant 1 message Jun 1, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 tty: replace strict_strtoul() with kstrtoul()

The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used.

---
 drivers/tty/hvc/hvc_iucv.c |    2 +-
 drivers/tty/sysrq.c        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/tty/hvc/hvc_iucv.c +1 -1
index b6f7d52..9d47f50 100644
@@ -1328,7 +1328,7 @@ out_error:
  */
 static	int __init hvc_iucv_config(char *val)
 {
-	 return strict_strtoul(val, 10, &hvc_iucv_devices);
+	 return kstrtoul(val, 10, &hvc_iucv_devices);
 }
 
 
drivers/tty/sysrq.c +1 -1
index b51c154..5f68f2c 100644
@@ -932,7 +932,7 @@ static int sysrq_reset_seq_param_set(const char *buffer,
 	unsigned long val;
 	int error;
 
-	error = strict_strtoul(buffer, 0, &val);
+	error = kstrtoul(buffer, 0, &val);
 	if (error < 0)
 		return error;
 
Signature · 1 line
1.7.10.4