From fd6e290bf3998ed1d63f2d38776ab68357238aca Mon Sep 17 00:00:00 2001 From: Chen-Yu Tsai Date: Thu, 15 May 2014 11:25:58 +0900 Subject: net: rfkill: gpio: fix reversed clock enable state rfkill-gpio has clk_enabled = blocked, which is true when rfkill blocks the device. This results in calling clock enable/disable at the wrong time. Reversing the value fixes this. Change-Id: Id13a2bd8d7314b29753d2cdedca62b27fa9fd1d9 Signed-off-by: Chen-Yu Tsai --- net/rfkill/rfkill-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c index 73c08c62f16..a5819f92530 100644 --- a/net/rfkill/rfkill-gpio.c +++ b/net/rfkill/rfkill-gpio.c @@ -61,7 +61,7 @@ static int rfkill_gpio_set_power(void *data, bool blocked) gpio_set_value(rfkill->shutdown_gpio, 1); } - rfkill->clk_enabled = blocked; + rfkill->clk_enabled = !blocked; return 0; } -- cgit v1.2.3