diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2018-06-15 17:06:10 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-06-21 10:56:42 +0800 |
commit | 6bca9742c8667ed956ac94a1d9055509b7b3c24e (patch) | |
tree | abeab15b55bcc3ee455a34102fb57d385ced03bb /drivers/input/touchscreen/gt1x | |
parent | 141e813a3cb8a3b41cd55fad96dcffb577b69b67 (diff) |
input: touchscreen: gt1x: Fix NULL pointer exception in unbind
We're using devm_regulator_get, no need to put it manually.
Change-Id: Ida960d938d7557d0174c53e952d80161650ccf1a
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Diffstat (limited to 'drivers/input/touchscreen/gt1x')
-rw-r--r-- | drivers/input/touchscreen/gt1x/gt1x.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/gt1x/gt1x.c b/drivers/input/touchscreen/gt1x/gt1x.c index f0cfa078b328..75896a9e6215 100644 --- a/drivers/input/touchscreen/gt1x/gt1x.c +++ b/drivers/input/touchscreen/gt1x/gt1x.c @@ -357,11 +357,6 @@ static void gt1x_remove_gpio_and_power(void) if (gpio_is_valid(gt1x_rst_gpio)) gpio_free(gt1x_rst_gpio); -#ifdef GTP_CONFIG_OF - if (vdd_ana) - regulator_put(vdd_ana); -#endif - if (gt1x_i2c_client && gt1x_i2c_client->irq) free_irq(gt1x_i2c_client->irq, gt1x_i2c_client); } |