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

Commit 22c3dd53 authored by Xin Hua Lu's avatar Xin Hua Lu
Browse files

input: touchscreen: st: release Int/Reset resource



release Int and Reset GPIO if fail when driver probe.

Change-Id: Iedcec5523918c0d29c98ef41150e997b1ecfcafb
Signed-off-by: default avatarXin Hua Lu <luxinhua@codeaurora.org>
parent 39617f0f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4678,6 +4678,8 @@ static int fts_probe(struct i2c_client *client,

ProbeErrorExit_3:
	fts_enable_reg(info, false);
	fts_gpio_setup(info->bdata->irq_gpio, false, 0, 0);
	fts_gpio_setup(info->bdata->reset_gpio, false, 0, 0);

ProbeErrorExit_2:
	fts_get_reg(info, false);
@@ -4737,6 +4739,9 @@ static int fts_remove(struct i2c_client *client)
	destroy_workqueue(info->fwu_workqueue);

	fts_enable_reg(info, false);
	fts_gpio_setup(info->bdata->irq_gpio, false, 0, 0);
	fts_gpio_setup(info->bdata->reset_gpio, false, 0, 0);

	fts_get_reg(info, false);

	/* free all */