summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-05-15 11:25:58 +0900
committerChanho Park <cometzero@review.tizen.org>2014-08-12 18:07:24 -0700
commit1d8d22f4fcd0c5199fa1886adcb36ae0554b9a45 (patch)
tree0e88fd3a2762b58bf0a836969ef8dfc38a40182c
parent14bbdd75757b90b244cb381d6754e3bd70bdde33 (diff)
downloadlinux-3.10-1d8d22f4fcd0c5199fa1886adcb36ae0554b9a45.tar.gz
linux-3.10-1d8d22f4fcd0c5199fa1886adcb36ae0554b9a45.tar.bz2
linux-3.10-1d8d22f4fcd0c5199fa1886adcb36ae0554b9a45.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>
-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;
}