]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/ide/ide-park.c
Merge branch 'iks_for_rmk' of git://git.linaro.org/people/nico/linux into devel-stable
[karo-tx-linux.git] / drivers / ide / ide-park.c
index 6ab9ab2a5081eba538b43abf738f549562cb166b..f41558a0bcd1742a75503a52028399e093d46403 100644 (file)
@@ -116,8 +116,10 @@ ssize_t ide_park_store(struct device *dev, struct device_attribute *attr,
        long int input;
        int rc;
 
-       rc = strict_strtol(buf, 10, &input);
-       if (rc || input < -2)
+       rc = kstrtol(buf, 10, &input);
+       if (rc)
+               return rc;
+       if (input < -2)
                return -EINVAL;
        if (input > MAX_PARK_TIMEOUT) {
                input = MAX_PARK_TIMEOUT;