tty: replace strict_strtoul() with kstrtoul()
authorJingoo Han <jg1.han@samsung.com>
Sat, 1 Jun 2013 07:30:06 +0000 (16:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 17:30:42 +0000 (10:30 -0700)
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_iucv.c
drivers/tty/sysrq.c

index b6f7d52f7c35ea0c8a74f6b14e4f7a1a09ec24d2..9d47f50c2755a37835ec04662a194db631dba08a 100644 (file)
@@ -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);
 }
 
 
index b51c15408ff317980205880dae4961e1db793eb4..5f68f2cfdfd0fe7b263521af8e2f237d8088a27d 100644 (file)
@@ -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;
 
This page took 0.027156 seconds and 5 git commands to generate.