diff options
| author | abdoulaye berthe <berthe.ab@gmail.com> | 2014-07-12 16:30:14 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-18 14:03:10 -0400 |
| commit | 88d5e520aa9701eb3e4f46165e02097cc03d363a (patch) | |
| tree | 443b8f89eeaf8933a9d3af2c9928cf0008aa35fd /drivers/input/touchscreen | |
| parent | 2134cb997f2f1b2d960ad8705d67dc8d690ba59c (diff) | |
driver:gpio remove all usage of gpio_remove retval in driver
this remove all reference to gpio_remove retval in all driver
except pinctrl and gpio. the same thing is done for gpio and
pinctrl in two different patches.
Signed-off-by: Abdoulaye Berthe <berthe.ab@gmail.com>
Acked-by: Michael Büsch <m@bues.ch>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/input/touchscreen')
| -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, |
