mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue