summaryrefslogtreecommitdiff
path: root/net/rfkill/rfkill-gpio.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-05-15 11:25:58 +0900
committerBeomho Seo <beomho.seo@samsung.com>2014-05-15 11:26:44 +0900
commit35e1f4453b7d3596f3ef6570cf7e39c1fc311f99 (patch)
tree5d70488cf8d27d452498ea07a634f906c6b9f439 /net/rfkill/rfkill-gpio.c
parentee211982e16b617ea261ef3e3139f4663c08d03f (diff)
downloadlinux-3.10-35e1f4453b7d3596f3ef6570cf7e39c1fc311f99.tar.gz
linux-3.10-35e1f4453b7d3596f3ef6570cf7e39c1fc311f99.tar.bz2
linux-3.10-35e1f4453b7d3596f3ef6570cf7e39c1fc311f99.zip
net: rfkill: gpio: fix reversed clock enable state
rfkill-gpio has clk_enabled = blocked, which is true when rfkill blocks the device. This results in calling clock enable/disable at the wrong time. Reversing the value fixes this. Change-Id: Id13a2bd8d7314b29753d2cdedca62b27fa9fd1d9 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'net/rfkill/rfkill-gpio.c')
-rw-r--r--net/rfkill/rfkill-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
index 73c08c62f16..a5819f92530 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -61,7 +61,7 @@ static int rfkill_gpio_set_power(void *data, bool blocked)
gpio_set_value(rfkill->shutdown_gpio, 1);
}
- rfkill->clk_enabled = blocked;
+ rfkill->clk_enabled = !blocked;
return 0;
}