aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-06-01 03:30:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-03 13:30:42 -0400
commit86b40567b9178d2de8bbc08b04c98c8373ddf194 (patch)
treea53a85ee6a73d6e1055bfcd7364cb6e54b692cdd
parent1f48c499df414a50e28a4a2b1332ff0e8e1af9a8 (diff)
tty: replace strict_strtoul() with kstrtoul()
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>
-rw-r--r--drivers/tty/hvc/hvc_iucv.c2
-rw-r--r--drivers/tty/sysrq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/hvc/hvc_iucv.c b/drivers/tty/hvc/hvc_iucv.c
index b6f7d52f7c35..9d47f50c2755 100644
--- a/drivers/tty/hvc/hvc_iucv.c
+++ b/drivers/tty/hvc/hvc_iucv.c
@@ -1328,7 +1328,7 @@ out_error:
1328 */ 1328 */
1329static int __init hvc_iucv_config(char *val) 1329static int __init hvc_iucv_config(char *val)
1330{ 1330{
1331 return strict_strtoul(val, 10, &hvc_iucv_devices); 1331 return kstrtoul(val, 10, &hvc_iucv_devices);
1332} 1332}
1333 1333
1334 1334
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c
index b51c15408ff3..5f68f2cfdfd0 100644
--- a/drivers/tty/sysrq.c
+++ b/drivers/tty/sysrq.c
@@ -932,7 +932,7 @@ static int sysrq_reset_seq_param_set(const char *buffer,
932 unsigned long val; 932 unsigned long val;
933 int error; 933 int error;
934 934
935 error = strict_strtoul(buffer, 0, &val); 935 error = kstrtoul(buffer, 0, &val);
936 if (error < 0) 936 if (error < 0)
937 return error; 937 return error;
938 938