gpio: remove remaining users of gpiochip_remove() retval

Some drivers accidentally still use the return value from
gpiochip_remove(). Get rid of them so we can simplify this function
and get rid of the return value.

Cc: Abdoulaye Berthe <berthe.ab@gmail.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Linus Walleij
2014-09-16 15:11:41 -07:00
parent 2fcea6cecb
commit da26d5d803
4 changed files with 7 additions and 19 deletions

View File

@@ -216,12 +216,9 @@ err:
static int xgene_gpio_remove(struct platform_device *pdev)
{
struct xgene_gpio *gpio = platform_get_drvdata(pdev);
int ret = 0;
ret = gpiochip_remove(&gpio->chip);
if (ret)
dev_err(&pdev->dev, "unable to remove gpio_chip.\n");
return ret;
gpiochip_remove(&gpio->chip);
return 0;
}
#ifdef CONFIG_OF