Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90477e8e authored by Balakrishna Godavarthi's avatar Balakrishna Godavarthi
Browse files

Don't use gpio_free() for output gpios



This change will not request for gpio_free if the gpio_request
is not called for a particular gpio.

Change-Id: I39bedb3495d59334ea61953eaeb8ccf59d6633f8
Signed-off-by: default avatarBalakrishna Godavarthi <bgodavar@codeaurora.org>
parent 4440785e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -565,10 +565,6 @@ static int bluetooth_power(int on)
gpio_fail:
		if (bt_power_pdata->bt_gpio_sys_rst > 0)
			gpio_free(bt_power_pdata->bt_gpio_sys_rst);
		if (bt_power_pdata->wl_gpio_sys_rst > 0)
			gpio_free(bt_power_pdata->wl_gpio_sys_rst);
		if  (bt_power_pdata->bt_gpio_sw_ctrl > 0)
			gpio_free(bt_power_pdata->bt_gpio_sw_ctrl);
		if (bt_power_pdata->bt_gpio_debug > 0)
			gpio_free(bt_power_pdata->bt_gpio_debug);
		if (bt_power_pdata->bt_chip_clk)