summaryrefslogtreecommitdiff
path: root/drivers/base/power/sysfs.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-26 08:10:22 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-27 05:02:43 +0400
commit34da5e6770ac06df770a0355b417155e6e84e263 (patch)
tree0b415e6c7e5c5a96ac730ed3b36488a662129e92 /drivers/base/power/sysfs.c
parent86df268705696ce2286410f1493e294e889bdce6 (diff)
downloadlinux-34da5e6770ac06df770a0355b417155e6e84e263.tar.xz
driver core: replace strict_strto*() with kstrto*()
The usage of strict_strto*() is not preferred, because strict_strto*() is obsolete. Thus, kstrto*() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/power/sysfs.c')
-rw-r--r--drivers/base/power/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/sysfs.c b/drivers/base/power/sysfs.c
index a53ebd265701..03e089ade5ce 100644
--- a/drivers/base/power/sysfs.c
+++ b/drivers/base/power/sysfs.c
@@ -206,7 +206,7 @@ static ssize_t autosuspend_delay_ms_store(struct device *dev,
if (!dev->power.use_autosuspend)
return -EIO;
- if (strict_strtol(buf, 10, &delay) != 0 || delay != (int) delay)
+ if (kstrtol(buf, 10, &delay) != 0 || delay != (int) delay)
return -EINVAL;
device_lock(dev);