diff options
| author | Loic Poulain <[email protected]> | 2014-09-16 12:53:58 +0000 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2014-09-22 20:02:15 +0000 |
| commit | fa5c107cc887886a04ee2dbce05af86de220ae48 (patch) | |
| tree | f71460f42aaa0c0962e7947fc7f7f9bb7533874b /net/rfkill/rfkill-gpio.c | |
| parent | Merge tag 'nfc-fixes-3.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
| download | kernel-fa5c107cc887886a04ee2dbce05af86de220ae48.tar.gz kernel-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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'net/rfkill/rfkill-gpio.c')
| -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; } |
