summaryrefslogtreecommitdiffstats
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorMuchun Song <smuchun@gmail.com>2018-10-28 07:39:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-11 18:54:42 +0100
commit63c980470526842f2e5219ffdfeca7c3051c110c (patch)
treec462069c1ebe5e2a49964dafd0b4ad69353c5bd4 /drivers/base/dd.c
parentLinux 4.20-rc1 (diff)
downloadlinux-63c980470526842f2e5219ffdfeca7c3051c110c.tar.xz
linux-63c980470526842f2e5219ffdfeca7c3051c110c.zip
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.c5
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);
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);