OSDN Git Service

wl12xx: strict_stroul introduced converted to kstrtoul
authorLuciano Coelho <coelho@ti.com>
Fri, 29 Apr 2011 19:25:28 +0000 (22:25 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 2 May 2011 07:27:34 +0000 (10:27 +0300)
One new patch applied added a couple of new strict_strtoul calls.
Converted those to kstroul().

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/debugfs.c

index 88c6efe..b17cff6 100644 (file)
@@ -321,7 +321,7 @@ static ssize_t dtim_interval_write(struct file *file,
                return -EFAULT;
        buf[len] = '\0';
 
-       ret = strict_strtoul(buf, 0, &value);
+       ret = kstrtoul(buf, 0, &value);
        if (ret < 0) {
                wl1271_warning("illegal value for dtim_interval");
                return -EINVAL;
@@ -386,7 +386,7 @@ static ssize_t beacon_interval_write(struct file *file,
                return -EFAULT;
        buf[len] = '\0';
 
-       ret = strict_strtoul(buf, 0, &value);
+       ret = kstrtoul(buf, 0, &value);
        if (ret < 0) {
                wl1271_warning("illegal value for beacon_interval");
                return -EINVAL;