PM / hibernate: convert simple_strtoul to kstrtoul
authorFabian Frederick <[email protected]>
Fri, 9 May 2014 21:32:08 +0000 (23:32 +0200)
committerRafael J. Wysocki <[email protected]>
Fri, 9 May 2014 21:32:08 +0000 (23:32 +0200)
Replace obsolete function.

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
kernel/power/hibernate.c

index 1f08ac7f55d818fbb301e87fd99707e93764aab1..2377ff72994c58b5bf397a6ffb95d38524d81626 100644 (file)
@@ -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;
 }