pinctrl: 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> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -877,8 +877,7 @@ static int sirfsoc_gpio_probe(struct device_node *np)
|
||||
|
||||
out_no_range:
|
||||
out_banks:
|
||||
if (gpiochip_remove(&sgpio->chip.gc))
|
||||
dev_err(&pdev->dev, "could not remove gpio chip\n");
|
||||
gpiochip_remove(&sgpio->chip.gc);
|
||||
out:
|
||||
iounmap(regs);
|
||||
return err;
|
||||
|
Reference in New Issue
Block a user