diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2014-09-16 18:05:41 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-23 11:51:12 -0400 |
| commit | 2fcea6cecbc965b4e02a39537d9d939f5251bbbd (patch) | |
| tree | ccfc3423faa851c6231a26ce428962e2059b5fe4 /drivers/pinctrl/sirf | |
| parent | 88d5e520aa9701eb3e4f46165e02097cc03d363a (diff) | |
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>
Diffstat (limited to 'drivers/pinctrl/sirf')
| -rw-r--r-- | drivers/pinctrl/sirf/pinctrl-sirf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c index 4c1d7c68666d..25eefdbb76b6 100644 --- a/drivers/pinctrl/sirf/pinctrl-sirf.c +++ b/drivers/pinctrl/sirf/pinctrl-sirf.c | |||
| @@ -877,8 +877,7 @@ static int sirfsoc_gpio_probe(struct device_node *np) | |||
| 877 | 877 | ||
| 878 | out_no_range: | 878 | out_no_range: |
| 879 | out_banks: | 879 | out_banks: |
| 880 | if (gpiochip_remove(&sgpio->chip.gc)) | 880 | gpiochip_remove(&sgpio->chip.gc); |
| 881 | dev_err(&pdev->dev, "could not remove gpio chip\n"); | ||
| 882 | out: | 881 | out: |
| 883 | iounmap(regs); | 882 | iounmap(regs); |
| 884 | return err; | 883 | return err; |
