diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-09-16 18:11:41 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-23 11:51:17 -0400 |
commit | da26d5d803e45a30c7d72b83ce906f3a466f4cc3 (patch) | |
tree | 43b7bac272c85efd85c037e0343d264ff923c443 /drivers/gpio/gpio-xgene.c | |
parent | 2fcea6cecbc965b4e02a39537d9d939f5251bbbd (diff) |
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>
Diffstat (limited to 'drivers/gpio/gpio-xgene.c')
-rw-r--r-- | drivers/gpio/gpio-xgene.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c index e25ba14fbb64..f1944d496c3b 100644 --- a/drivers/gpio/gpio-xgene.c +++ b/drivers/gpio/gpio-xgene.c | |||
@@ -216,12 +216,9 @@ err: | |||
216 | static int xgene_gpio_remove(struct platform_device *pdev) | 216 | static int xgene_gpio_remove(struct platform_device *pdev) |
217 | { | 217 | { |
218 | struct xgene_gpio *gpio = platform_get_drvdata(pdev); | 218 | struct xgene_gpio *gpio = platform_get_drvdata(pdev); |
219 | int ret = 0; | ||
220 | 219 | ||
221 | ret = gpiochip_remove(&gpio->chip); | 220 | gpiochip_remove(&gpio->chip); |
222 | if (ret) | 221 | return 0; |
223 | dev_err(&pdev->dev, "unable to remove gpio_chip.\n"); | ||
224 | return ret; | ||
225 | } | 222 | } |
226 | 223 | ||
227 | #ifdef CONFIG_OF | 224 | #ifdef CONFIG_OF |