wl12xx: use kstrtoul functions
authorLuciano Coelho <coelho@ti.com>
Fri, 1 Apr 2011 14:49:54 +0000 (17:49 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:21 +0000 (16:49 +0300)
Use the new kstrtoul functions instead of the deprecated strict_strtoul().

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

index 8e75b09723b9578eb9ec0768b257191fe0981432..70ab1986788e221bc3cb7bed5e35d23508493bea 100644 (file)
@@ -267,7 +267,7 @@ static ssize_t gpio_power_write(struct file *file,
        }
        buf[len] = '\0';
 
-       ret = strict_strtoul(buf, 0, &value);
+       ret = kstrtoul(buf, 0, &value);
        if (ret < 0) {
                wl1271_warning("illegal value in gpio_power");
                return -EINVAL;
index 7126506611c11b3db0adea7fa0661e0ff4d38351..a5a5d01330239a4abe142cc7095e25aabd64e84a 100644 (file)
@@ -3397,8 +3397,7 @@ static ssize_t wl1271_sysfs_store_bt_coex_state(struct device *dev,
        unsigned long res;
        int ret;
 
-       ret = strict_strtoul(buf, 10, &res);
-
+       ret = kstrtoul(buf, 10, &res);
        if (ret < 0) {
                wl1271_warning("incorrect value written to bt_coex_mode");
                return count;