diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_debugfs.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_debugfs.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_debugfs.c b/drivers/net/wireless/wl12xx/wl1271_debugfs.c index 3f7ff8d0cf5a..c239ef4d0b8d 100644 --- a/drivers/net/wireless/wl12xx/wl1271_debugfs.c +++ b/drivers/net/wireless/wl12xx/wl1271_debugfs.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "wl1271.h" | 29 | #include "wl1271.h" |
30 | #include "wl1271_acx.h" | 30 | #include "wl1271_acx.h" |
31 | #include "wl1271_ps.h" | 31 | #include "wl1271_ps.h" |
32 | #include "wl1271_io.h" | ||
32 | 33 | ||
33 | /* ms */ | 34 | /* ms */ |
34 | #define WL1271_DEBUGFS_STATS_LIFETIME 1000 | 35 | #define WL1271_DEBUGFS_STATS_LIFETIME 1000 |
@@ -277,13 +278,10 @@ static ssize_t gpio_power_write(struct file *file, | |||
277 | goto out; | 278 | goto out; |
278 | } | 279 | } |
279 | 280 | ||
280 | if (value) { | 281 | if (value) |
281 | wl->set_power(true); | 282 | wl1271_power_on(wl); |
282 | set_bit(WL1271_FLAG_GPIO_POWER, &wl->flags); | 283 | else |
283 | } else { | 284 | wl1271_power_off(wl); |
284 | wl->set_power(false); | ||
285 | clear_bit(WL1271_FLAG_GPIO_POWER, &wl->flags); | ||
286 | } | ||
287 | 285 | ||
288 | out: | 286 | out: |
289 | mutex_unlock(&wl->mutex); | 287 | mutex_unlock(&wl->mutex); |