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/mfd/htc-i2cpld.c | |
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/mfd/htc-i2cpld.c')
-rw-r--r-- | drivers/mfd/htc-i2cpld.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c index b44f0203983b..eab3fb028447 100644 --- a/drivers/mfd/htc-i2cpld.c +++ b/drivers/mfd/htc-i2cpld.c | |||
@@ -481,15 +481,9 @@ static int htcpld_register_chip_gpio( | |||
481 | 481 | ||
482 | ret = gpiochip_add(&(chip->chip_in)); | 482 | ret = gpiochip_add(&(chip->chip_in)); |
483 | if (ret) { | 483 | if (ret) { |
484 | int error; | ||
485 | |||
486 | dev_warn(dev, "Unable to register input GPIOs for 0x%x: %d\n", | 484 | dev_warn(dev, "Unable to register input GPIOs for 0x%x: %d\n", |
487 | plat_chip_data->addr, ret); | 485 | plat_chip_data->addr, ret); |
488 | 486 | gpiochip_remove(&(chip->chip_out)); | |
489 | error = gpiochip_remove(&(chip->chip_out)); | ||
490 | if (error) | ||
491 | dev_warn(dev, "Error while trying to unregister gpio chip: %d\n", error); | ||
492 | |||
493 | return ret; | 487 | return ret; |
494 | } | 488 | } |
495 | 489 | ||