mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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: Balakrishna Godavarthi <bgodavar@codeaurora.org>
This commit is contained in:
parent
4440785ea8
commit
90477e8efd
1 changed files with 1 additions and 5 deletions
|
|
@ -565,11 +565,7 @@ 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)
|
||||
if (bt_power_pdata->bt_gpio_debug > 0)
|
||||
gpio_free(bt_power_pdata->bt_gpio_debug);
|
||||
if (bt_power_pdata->bt_chip_clk)
|
||||
bt_clk_disable(bt_power_pdata->bt_chip_clk);
|
||||
|
|
|
|||
Loading…
Reference in a new issue