From: Fabian Frederick Date: Fri, 9 May 2014 21:32:08 +0000 (+0200) Subject: PM / hibernate: convert simple_strtoul to kstrtoul X-Git-Tag: v4.14-rc1~7386^2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=317cf7e5e85e3ef9f23fc6dd8b2945ab4a258140;p=platform%2Fkernel%2Flinux-rpi.git PM / hibernate: convert simple_strtoul to kstrtoul Replace obsolete function. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 1f08ac7..2377ff7 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -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; }