Skip to content

Commit

Permalink
PM / hibernate: convert simple_strtoul to kstrtoul
Browse files Browse the repository at this point in the history
Replace obsolete function.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Fabian Frederick authored and Rafael J. Wysocki committed May 9, 2014
1 parent 8a54cd5 commit 317cf7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 317cf7e

Please sign in to comment.