diff options
author | Luciano Coelho <coelho@ti.com> | 2011-04-01 17:49:54 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-04-19 16:49:21 +0300 |
commit | 6277ed65704d19377b0874618e5f23d64c9e71a6 (patch) | |
tree | 1fba6ddb1216a9da6d092f69076759d755f652fa | |
parent | 341b7cde6ccc60672fcd7fc84dd24a1b7c0b8d94 (diff) | |
download | kernel_goldelico_gta04-6277ed65704d19377b0874618e5f23d64c9e71a6.zip kernel_goldelico_gta04-6277ed65704d19377b0874618e5f23d64c9e71a6.tar.gz kernel_goldelico_gta04-6277ed65704d19377b0874618e5f23d64c9e71a6.tar.bz2 |
wl12xx: use kstrtoul functions
Use the new kstrtoul functions instead of the deprecated strict_strtoul().
Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r-- | drivers/net/wireless/wl12xx/debugfs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/debugfs.c b/drivers/net/wireless/wl12xx/debugfs.c index 8e75b09..70ab198 100644 --- a/drivers/net/wireless/wl12xx/debugfs.c +++ b/drivers/net/wireless/wl12xx/debugfs.c @@ -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; diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 7126506..a5a5d01 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -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; |