summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-05-15 11:25:58 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:32 +0900
commitfd6e290bf3998ed1d63f2d38776ab68357238aca (patch)
treecb9e3a4f041de3cca1ea2adb362ec1fdaf2c8474 /net
parent2fd956c0c9ec0124e79311718a5406fdb303c5bb (diff)
downloadlinux-3.10-fd6e290bf3998ed1d63f2d38776ab68357238aca.tar.gz
linux-3.10-fd6e290bf3998ed1d63f2d38776ab68357238aca.tar.bz2
linux-3.10-fd6e290bf3998ed1d63f2d38776ab68357238aca.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')
-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;
}