summaryrefslogtreecommitdiffstats
path: root/drivers/base/memory.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-26 13:10:22 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-26 18:02:43 -0700
commit34da5e6770ac06df770a0355b417155e6e84e263 (patch)
tree0b415e6c7e5c5a96ac730ed3b36488a662129e92 /drivers/base/memory.c
parent86df268705696ce2286410f1493e294e889bdce6 (diff)
downloadlinux-34da5e6770ac06df770a0355b417155e6e84e263.tar.gz
linux-34da5e6770ac06df770a0355b417155e6e84e263.tar.bz2
linux-34da5e6770ac06df770a0355b417155e6e84e263.zip
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/memory.c')
-rw-r--r--drivers/base/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index 2b7813ec6d02..ddd14ce6654c 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -469,7 +469,7 @@ store_soft_offline_page(struct device *dev,
u64 pfn;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
- if (strict_strtoull(buf, 0, &pfn) < 0)
+ if (kstrtoull(buf, 0, &pfn) < 0)
return -EINVAL;
pfn >>= PAGE_SHIFT;
if (!pfn_valid(pfn))
@@ -488,7 +488,7 @@ store_hard_offline_page(struct device *dev,
u64 pfn;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
- if (strict_strtoull(buf, 0, &pfn) < 0)
+ if (kstrtoull(buf, 0, &pfn) < 0)
return -EINVAL;
pfn >>= PAGE_SHIFT;
ret = memory_failure(pfn, 0, 0);