提交 86b40567 编写于 作者: J Jingoo Han 提交者: Greg Kroah-Hartman

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: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1f48c499
...@@ -1328,7 +1328,7 @@ static int __init hvc_iucv_init(void) ...@@ -1328,7 +1328,7 @@ static int __init hvc_iucv_init(void)
*/ */
static int __init hvc_iucv_config(char *val) static int __init hvc_iucv_config(char *val)
{ {
return strict_strtoul(val, 10, &hvc_iucv_devices); return kstrtoul(val, 10, &hvc_iucv_devices);
} }
......
...@@ -932,7 +932,7 @@ static int sysrq_reset_seq_param_set(const char *buffer, ...@@ -932,7 +932,7 @@ static int sysrq_reset_seq_param_set(const char *buffer,
unsigned long val; unsigned long val;
int error; int error;
error = strict_strtoul(buffer, 0, &val); error = kstrtoul(buffer, 0, &val);
if (error < 0) if (error < 0)
return error; return error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册