Skip to content

Commit 317cf7e

Browse files
Fabian Frederickrafaeljw
authored andcommitted
PM / hibernate: convert simple_strtoul to kstrtoul
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>
1 parent 8a54cd5 commit 317cf7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/power/hibernate.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,10 @@ static int __init resumewait_setup(char *str)
11151115

11161116
static int __init resumedelay_setup(char *str)
11171117
{
1118-
resume_delay = simple_strtoul(str, NULL, 0);
1118+
int rc = kstrtoul(str, 0, (unsigned long *)&resume_delay);
1119+
1120+
if (rc)
1121+
return rc;
11191122
return 1;
11201123
}
11211124

0 commit comments

Comments
 (0)