Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
net: rfkill: gpio: Fix clock status
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
loicpoulain authored and linvjw committed Sep 22, 2014
1 parent 5c244fa commit fa5c107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rfkill/rfkill-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa5c107

Please sign in to comment.