aboutsummaryrefslogtreecommitdiff
path: root/net/rfkill
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@intel.com>2014-09-16 14:53:58 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-09-22 16:02:15 -0400
commitfa5c107cc887886a04ee2dbce05af86de220ae48 (patch)
treef71460f42aaa0c0962e7947fc7f7f9bb7533874b /net/rfkill
parent5c244fa2c92b67518941518938be7a2b14b7e34a (diff)
net: rfkill: gpio: Fix clock status
Clock is disabled when the device is blocked. So, clock_enabled is the logical negation of "blocked". Signed-off-by: Loic Poulain <loic.poulain@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rfkill')
-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 5fa54dd78e25..0f62326c0f5e 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -54,7 +54,7 @@ static int rfkill_gpio_set_power(void *data, bool blocked)
if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled)
clk_disable(rfkill->clk);
- rfkill->clk_enabled = blocked;
+ rfkill->clk_enabled = !blocked;
return 0;
}