diff options
-rw-r--r-- | drivers/input/touchscreen/auo-pixcir-ts.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c index c6e19a96348e..813413eebab7 100644 --- a/drivers/input/touchscreen/auo-pixcir-ts.c +++ b/drivers/input/touchscreen/auo-pixcir-ts.c | |||
@@ -504,6 +504,13 @@ static int auo_pixcir_probe(struct i2c_client *client, | |||
504 | goto err_gpio_int; | 504 | goto err_gpio_int; |
505 | } | 505 | } |
506 | 506 | ||
507 | ret = gpio_direction_input(pdata->gpio_int); | ||
508 | if (ret) { | ||
509 | dev_err(&client->dev, "setting direction of gpio %d failed %d\n", | ||
510 | pdata->gpio_int, ret); | ||
511 | goto err_gpio_dir; | ||
512 | } | ||
513 | |||
507 | if (pdata->init_hw) | 514 | if (pdata->init_hw) |
508 | pdata->init_hw(client); | 515 | pdata->init_hw(client); |
509 | 516 | ||
@@ -592,6 +599,7 @@ err_fw_vers: | |||
592 | err_input_alloc: | 599 | err_input_alloc: |
593 | if (pdata->exit_hw) | 600 | if (pdata->exit_hw) |
594 | pdata->exit_hw(client); | 601 | pdata->exit_hw(client); |
602 | err_gpio_dir: | ||
595 | gpio_free(pdata->gpio_int); | 603 | gpio_free(pdata->gpio_int); |
596 | err_gpio_int: | 604 | err_gpio_int: |
597 | kfree(ts); | 605 | kfree(ts); |