Commit 63c98047 authored by Muchun Song's avatar Muchun Song Committed by Greg Kroah-Hartman

driver core: Replace simple_strtol by kstrtoint

The simple_strtol() function is deprecated, use kstrtoint() instead.
Signed-off-by: default avatarMuchun Song <smuchun@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65102238
......@@ -223,7 +223,10 @@ DEFINE_SHOW_ATTRIBUTE(deferred_devs);
static int deferred_probe_timeout = -1;
static int __init deferred_probe_timeout_setup(char *str)
{
deferred_probe_timeout = simple_strtol(str, NULL, 10);
int timeout;
if (!kstrtoint(str, 10, &timeout))
deferred_probe_timeout = timeout;
return 1;
}
__setup("deferred_probe_timeout=", deferred_probe_timeout_setup);
......
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