misc: replace strict_strtoul() with kstrtoul()
[linux-2.6-block.git] / drivers / misc / carma / carma-fpga.c
index a2128af706b25600a3add4ea240f5312c8980bcf..7b56563f8b747dc87df208c5be260173c217153c 100644 (file)
@@ -1002,10 +1002,10 @@ static ssize_t data_en_set(struct device *dev, struct device_attribute *attr,
        unsigned long enable;
        int ret;
 
-       ret = strict_strtoul(buf, 0, &enable);
+       ret = kstrtoul(buf, 0, &enable);
        if (ret) {
                dev_err(priv->dev, "unable to parse enable input\n");
-               return -EINVAL;
+               return ret;
        }
 
        /* protect against concurrent enable/disable */