[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20181028063911.51586-1-smuchun@gmail.com>
Date: Sun, 28 Oct 2018 14:39:11 +0800
From: Muchun Song <smuchun@...il.com>
To: gregkh@...uxfoundation.org, rafael@...nel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] driver core: Replace simple_strtol by kstrtoint
The simple_strtol() function is deprecated, use kstrtoint() instead.
Signed-off-by: Muchun Song <smuchun@...il.com>
---
drivers/base/dd.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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);
--
2.17.1
Powered by blists - more mailing lists