diff options
Diffstat (limited to 'drivers/input/touchscreen/ad7879.c')
-rw-r--r-- | drivers/input/touchscreen/ad7879.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index fce590677b7b..1eb9d3c20886 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c | |||
@@ -470,14 +470,10 @@ static int ad7879_gpio_add(struct ad7879 *ts, | |||
470 | static void ad7879_gpio_remove(struct ad7879 *ts) | 470 | static void ad7879_gpio_remove(struct ad7879 *ts) |
471 | { | 471 | { |
472 | const struct ad7879_platform_data *pdata = dev_get_platdata(ts->dev); | 472 | const struct ad7879_platform_data *pdata = dev_get_platdata(ts->dev); |
473 | int ret; | ||
474 | 473 | ||
475 | if (pdata->gpio_export) { | 474 | if (pdata->gpio_export) |
476 | ret = gpiochip_remove(&ts->gc); | 475 | gpiochip_remove(&ts->gc); |
477 | if (ret) | 476 | |
478 | dev_err(ts->dev, "failed to remove gpio %d\n", | ||
479 | ts->gc.base); | ||
480 | } | ||
481 | } | 477 | } |
482 | #else | 478 | #else |
483 | static inline int ad7879_gpio_add(struct ad7879 *ts, | 479 | static inline int ad7879_gpio_add(struct ad7879 *ts, |