aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-19 03:01:26 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-05 15:21:29 -0400
commit79c8fa0b6bfa6953352a8e73b7105ac268e02743 (patch)
tree4c92a88c2a4ee5e5ee46cae55e1ddb6ae1fde98b /drivers/ide
parenta09e9a7a4b907f2dfa9bdb2b98a1828ab4b340b2 (diff)
ide: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-park.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/ide-park.c b/drivers/ide/ide-park.c
index 6ab9ab2a5081..f41558a0bcd1 100644
--- a/drivers/ide/ide-park.c
+++ b/drivers/ide/ide-park.c
@@ -116,8 +116,10 @@ ssize_t ide_park_store(struct device *dev, struct device_attribute *attr,
116 long int input; 116 long int input;
117 int rc; 117 int rc;
118 118
119 rc = strict_strtol(buf, 10, &input); 119 rc = kstrtol(buf, 10, &input);
120 if (rc || input < -2) 120 if (rc)
121 return rc;
122 if (input < -2)
121 return -EINVAL; 123 return -EINVAL;
122 if (input > MAX_PARK_TIMEOUT) { 124 if (input > MAX_PARK_TIMEOUT) {
123 input = MAX_PARK_TIMEOUT; 125 input = MAX_PARK_TIMEOUT;