Commit 317cf7e5 authored by Fabian Frederick's avatar Fabian Frederick Committed by Rafael J. Wysocki

PM / hibernate: convert simple_strtoul to kstrtoul

Replace obsolete function.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment