summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sunxi
diff options
context:
space:
mode:
authorabdoulaye berthe2014-07-12 22:30:13 +0200
committerLinus Walleij2014-07-22 16:34:12 +0200
commitb4e7c55dabf611cf5cccd1554fec06f72e1c9faf (patch)
tree12c6b87eeddbeda9fb80c3e61dbdd2037778a283 /drivers/pinctrl/sunxi
parentpinctrl: qcom: Make muxing of gpio function explicit (diff)
downloadkernel-qcow2-linux-b4e7c55dabf611cf5cccd1554fec06f72e1c9faf.tar.gz
kernel-qcow2-linux-b4e7c55dabf611cf5cccd1554fec06f72e1c9faf.tar.xz
kernel-qcow2-linux-b4e7c55dabf611cf5cccd1554fec06f72e1c9faf.zip
pinctrl: remove all usage of gpio_remove ret val in driver/pinctl
Signed-off-by: abdoulaye berthe <berthe.ab@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sunxi')
-rw-r--r--drivers/pinctrl/sunxi/pinctrl-sunxi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index 47f5e1bc50d0..96ee6bb0fad5 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
@@ -983,8 +983,7 @@ int sunxi_pinctrl_init(struct platform_device *pdev,
clk_error:
clk_disable_unprepare(clk);
gpiochip_error:
- if (gpiochip_remove(pctl->chip))
- dev_err(&pdev->dev, "failed to remove gpio chip\n");
+ gpiochip_remove(pctl->chip);
pinctrl_error:
pinctrl_unregister(pctl->pctl_dev);
return ret;