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:
@@ -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
|
||||
|
Reference in New Issue
Block a user