summaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-19 16:07:21 +0900
committerBorislav Petkov <bp@suse.de>2013-07-24 09:30:03 +0200
commitc542b53da9ffa4fe9de61149818a06aacae531f8 (patch)
tree9579ba3db56d3a74414810ddfd57058c79bc9f84 /drivers/edac/edac_mc_sysfs.c
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff)
downloadtalos-obmc-linux-c542b53da9ffa4fe9de61149818a06aacae531f8.tar.gz
talos-obmc-linux-c542b53da9ffa4fe9de61149818a06aacae531f8.zip
EDAC: Replace strict_strtol() with kstrtol()
The usage of strict_strtol() is not preferred, because strict_strtol() is obsolete. Thus, kstrtol() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
-rw-r--r--drivers/edac/edac_mc_sysfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index ef15a7e613bc..e6789e919a56 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -58,8 +58,10 @@ static int edac_set_poll_msec(const char *val, struct kernel_param *kp)
if (!val)
return -EINVAL;
- ret = strict_strtol(val, 0, &l);
- if (ret == -EINVAL || ((int)l != l))
+ ret = kstrtol(val, 0, &l);
+ if (ret)
+ return ret;
+ if ((int)l != l)
return -EINVAL;
*((int *)kp->arg) = l;
OpenPOWER on IntegriCloud