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/qcom | |
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/qcom')
-rw-r--r-- | drivers/pinctrl/qcom/pinctrl-msm.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 2738108caff2..041677113a48 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c | |||
@@ -903,16 +903,9 @@ EXPORT_SYMBOL(msm_pinctrl_probe); | |||
903 | int msm_pinctrl_remove(struct platform_device *pdev) | 903 | int msm_pinctrl_remove(struct platform_device *pdev) |
904 | { | 904 | { |
905 | struct msm_pinctrl *pctrl = platform_get_drvdata(pdev); | 905 | struct msm_pinctrl *pctrl = platform_get_drvdata(pdev); |
906 | int ret; | ||
907 | |||
908 | ret = gpiochip_remove(&pctrl->chip); | ||
909 | if (ret) { | ||
910 | dev_err(&pdev->dev, "Failed to remove gpiochip\n"); | ||
911 | return ret; | ||
912 | } | ||
913 | 906 | ||
907 | gpiochip_remove(&pctrl->chip); | ||
914 | pinctrl_unregister(pctrl->pctrl); | 908 | pinctrl_unregister(pctrl->pctrl); |
915 | |||
916 | return 0; | 909 | return 0; |
917 | } | 910 | } |
918 | EXPORT_SYMBOL(msm_pinctrl_remove); | 911 | EXPORT_SYMBOL(msm_pinctrl_remove); |