diff options
author | abdoulaye berthe <berthe.ab@gmail.com> | 2014-07-12 16:30:14 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-18 14:03:10 -0400 |
commit | 88d5e520aa9701eb3e4f46165e02097cc03d363a (patch) | |
tree | 443b8f89eeaf8933a9d3af2c9928cf0008aa35fd /arch/arm/common | |
parent | 2134cb997f2f1b2d960ad8705d67dc8d690ba59c (diff) |
driver:gpio remove all usage of gpio_remove retval in driver
this remove all reference to gpio_remove retval in all driver
except pinctrl and gpio. the same thing is done for gpio and
pinctrl in two different patches.
Signed-off-by: Abdoulaye Berthe <berthe.ab@gmail.com>
Acked-by: Michael Büsch <m@bues.ch>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/scoop.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c index a20fa80776d3..45f4c21e393c 100644 --- a/arch/arm/common/scoop.c +++ b/arch/arm/common/scoop.c | |||
@@ -243,18 +243,12 @@ err_ioremap: | |||
243 | static int scoop_remove(struct platform_device *pdev) | 243 | static int scoop_remove(struct platform_device *pdev) |
244 | { | 244 | { |
245 | struct scoop_dev *sdev = platform_get_drvdata(pdev); | 245 | struct scoop_dev *sdev = platform_get_drvdata(pdev); |
246 | int ret; | ||
247 | 246 | ||
248 | if (!sdev) | 247 | if (!sdev) |
249 | return -EINVAL; | 248 | return -EINVAL; |
250 | 249 | ||
251 | if (sdev->gpio.base != -1) { | 250 | if (sdev->gpio.base != -1) |
252 | ret = gpiochip_remove(&sdev->gpio); | 251 | gpiochip_remove(&sdev->gpio); |
253 | if (ret) { | ||
254 | dev_err(&pdev->dev, "Can't remove gpio chip: %d\n", ret); | ||
255 | return ret; | ||
256 | } | ||
257 | } | ||
258 | 252 | ||
259 | platform_set_drvdata(pdev, NULL); | 253 | platform_set_drvdata(pdev, NULL); |
260 | iounmap(sdev->base); | 254 | iounmap(sdev->base); |