Skip to content

Commit 6bca974

Browse files
JeffyCNrkhuangtao
authored andcommitted
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>
1 parent 141e813 commit 6bca974

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • drivers/input/touchscreen/gt1x

drivers/input/touchscreen/gt1x/gt1x.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,6 @@ static void gt1x_remove_gpio_and_power(void)
357357
if (gpio_is_valid(gt1x_rst_gpio))
358358
gpio_free(gt1x_rst_gpio);
359359

360-
#ifdef GTP_CONFIG_OF
361-
if (vdd_ana)
362-
regulator_put(vdd_ana);
363-
#endif
364-
365360
if (gt1x_i2c_client && gt1x_i2c_client->irq)
366361
free_irq(gt1x_i2c_client->irq, gt1x_i2c_client);
367362
}

0 commit comments

Comments
 (0)