提交 fa5c107c 编写于 作者: L Loic Poulain 提交者: John W. Linville

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: NLoic Poulain <loic.poulain@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 5c244fa2
...@@ -54,7 +54,7 @@ static int rfkill_gpio_set_power(void *data, bool blocked) ...@@ -54,7 +54,7 @@ static int rfkill_gpio_set_power(void *data, bool blocked)
if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled)
clk_disable(rfkill->clk); clk_disable(rfkill->clk);
rfkill->clk_enabled = blocked; rfkill->clk_enabled = !blocked;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册