summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/samsung/pinctrl-exynos5440.c
diff options
context:
space:
mode:
authorLinus Walleij2014-09-17 00:05:41 +0200
committerLinus Walleij2014-09-23 17:51:12 +0200
commit2fcea6cecbc965b4e02a39537d9d939f5251bbbd (patch)
treeccfc3423faa851c6231a26ce428962e2059b5fe4 /drivers/pinctrl/samsung/pinctrl-exynos5440.c
parentdriver:gpio remove all usage of gpio_remove retval in driver (diff)
downloadkernel-qcow2-linux-2fcea6cecbc965b4e02a39537d9d939f5251bbbd.tar.gz
kernel-qcow2-linux-2fcea6cecbc965b4e02a39537d9d939f5251bbbd.tar.xz
kernel-qcow2-linux-2fcea6cecbc965b4e02a39537d9d939f5251bbbd.zip
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/samsung/pinctrl-exynos5440.c')
-rw-r--r--drivers/pinctrl/samsung/pinctrl-exynos5440.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pinctrl/samsung/pinctrl-exynos5440.c b/drivers/pinctrl/samsung/pinctrl-exynos5440.c
index 603da2f9dd95..8ef370244aee 100644
--- a/drivers/pinctrl/samsung/pinctrl-exynos5440.c
+++ b/drivers/pinctrl/samsung/pinctrl-exynos5440.c
@@ -873,11 +873,7 @@ static int exynos5440_gpiolib_register(struct platform_device *pdev,
static int exynos5440_gpiolib_unregister(struct platform_device *pdev,
struct exynos5440_pinctrl_priv_data *priv)
{
- int ret = gpiochip_remove(priv->gc);
- if (ret) {
- dev_err(&pdev->dev, "gpio chip remove failed\n");
- return ret;
- }
+ gpiochip_remove(priv->gc);
return 0;
}