mirror of https://gitee.com/openkylin/linux.git
driver core: Replace simple_strtol by kstrtoint
The simple_strtol() function is deprecated, use kstrtoint() instead. Signed-off-by: Muchun Song <smuchun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
651022382c
commit
63c9804705
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue