diff options
author | Muchun Song <smuchun@gmail.com> | 2018-10-28 02:39:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-11 12:54:42 -0500 |
commit | 63c980470526842f2e5219ffdfeca7c3051c110c (patch) | |
tree | c462069c1ebe5e2a49964dafd0b4ad69353c5bd4 /drivers/base/dd.c | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) |
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>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r-- | drivers/base/dd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 169412ee4ae8..940abad069c0 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c | |||
@@ -223,7 +223,10 @@ DEFINE_SHOW_ATTRIBUTE(deferred_devs); | |||
223 | static int deferred_probe_timeout = -1; | 223 | static int deferred_probe_timeout = -1; |
224 | static int __init deferred_probe_timeout_setup(char *str) | 224 | static int __init deferred_probe_timeout_setup(char *str) |
225 | { | 225 | { |
226 | deferred_probe_timeout = simple_strtol(str, NULL, 10); | 226 | int timeout; |
227 | |||
228 | if (!kstrtoint(str, 10, &timeout)) | ||
229 | deferred_probe_timeout = timeout; | ||
227 | return 1; | 230 | return 1; |
228 | } | 231 | } |
229 | __setup("deferred_probe_timeout=", deferred_probe_timeout_setup); | 232 | __setup("deferred_probe_timeout=", deferred_probe_timeout_setup); |