summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-05-15 02:25:58 (GMT)
committerBeomho Seo <beomho.seo@samsung.com>2014-05-15 02:26:44 (GMT)
commit35e1f4453b7d3596f3ef6570cf7e39c1fc311f99 (patch)
tree5d70488cf8d27d452498ea07a634f906c6b9f439
parentee211982e16b617ea261ef3e3139f4663c08d03f (diff)
downloadlinux-3.10-35e1f4453b7d3596f3ef6570cf7e39c1fc311f99.zip
linux-3.10-35e1f4453b7d3596f3ef6570cf7e39c1fc311f99.tar.gz
linux-3.10-35e1f4453b7d3596f3ef6570cf7e39c1fc311f99.tar.bz2
net: rfkill: gpio: fix reversed clock enable staterefs/changes/72/21072/1
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>
-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 73c08c6..a5819f9 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;
}