提交 317cf7e5 编写于 作者: F Fabian Frederick 提交者: Rafael J. Wysocki

PM / hibernate: convert simple_strtoul to kstrtoul

Replace obsolete function.
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 8a54cd5b
......@@ -1115,7 +1115,10 @@ static int __init resumewait_setup(char *str)
static int __init resumedelay_setup(char *str)
{
resume_delay = simple_strtoul(str, NULL, 0);
int rc = kstrtoul(str, 0, (unsigned long *)&resume_delay);
if (rc)
return rc;
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册