mfd: wcd9310: remove GPIO reset configuration from CODEC driver
Remove TABLA reset GPIO configuration from CODEC Driver since it is
now added to the board-8960-pmic table & board-8064-pmic table.
Change-Id: I1d2839baa9270c6343b5ad8ffb6013be1e53cfc3
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
diff --git a/drivers/mfd/wcd9310-core.c b/drivers/mfd/wcd9310-core.c
index e0d4b45..d1d9132 100644
--- a/drivers/mfd/wcd9310-core.c
+++ b/drivers/mfd/wcd9310-core.c
@@ -267,15 +267,6 @@
static int tabla_reset(struct tabla *tabla)
{
int ret;
- struct pm_gpio param = {
- .direction = PM_GPIO_DIR_OUT,
- .output_buffer = PM_GPIO_OUT_BUF_CMOS,
- .output_value = 1,
- .pull = PM_GPIO_PULL_NO,
- .vin_sel = PM_GPIO_VIN_S4,
- .out_strength = PM_GPIO_STRENGTH_MED,
- .function = PM_GPIO_FUNC_NORMAL,
- };
if (tabla->reset_gpio) {
ret = gpio_request(tabla->reset_gpio, "CDC_RESET");
@@ -286,10 +277,6 @@
return ret;
}
- ret = pm8xxx_gpio_config(tabla->reset_gpio, ¶m);
- if (ret)
- pr_err("%s: Failed to configure gpio\n", __func__);
-
gpio_direction_output(tabla->reset_gpio, 1);
msleep(20);
gpio_direction_output(tabla->reset_gpio, 0);