diff options
author | Loic Poulain <loic.poulain@intel.com> | 2014-09-16 14:53:58 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-22 22:02:15 +0200 |
commit | fa5c107cc887886a04ee2dbce05af86de220ae48 (patch) | |
tree | f71460f42aaa0c0962e7947fc7f7f9bb7533874b /net | |
parent | Merge tag 'nfc-fixes-3.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-fa5c107cc887886a04ee2dbce05af86de220ae48.tar.xz linux-fa5c107cc887886a04ee2dbce05af86de220ae48.zip |
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')
-rw-r--r-- | net/rfkill/rfkill-gpio.c | 2 |
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; } |