diff options
author | abdoulaye berthe <berthe.ab@gmail.com> | 2014-07-12 22:30:13 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-07-22 16:34:12 +0200 |
commit | b4e7c55dabf611cf5cccd1554fec06f72e1c9faf (patch) | |
tree | 12c6b87eeddbeda9fb80c3e61dbdd2037778a283 /drivers/pinctrl/sh-pfc | |
parent | pinctrl: qcom: Make muxing of gpio function explicit (diff) | |
download | linux-b4e7c55dabf611cf5cccd1554fec06f72e1c9faf.tar.xz 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/sh-pfc')
-rw-r--r-- | drivers/pinctrl/sh-pfc/gpio.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pinctrl/sh-pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c index a9288ab01f7b..80f641ee4dea 100644 --- a/drivers/pinctrl/sh-pfc/gpio.c +++ b/drivers/pinctrl/sh-pfc/gpio.c @@ -409,11 +409,8 @@ int sh_pfc_register_gpiochip(struct sh_pfc *pfc) int sh_pfc_unregister_gpiochip(struct sh_pfc *pfc) { - int err; - int ret; - - ret = gpiochip_remove(&pfc->gpio->gpio_chip); - err = gpiochip_remove(&pfc->func->gpio_chip); + gpiochip_remove(&pfc->gpio->gpio_chip); + gpiochip_remove(&pfc->func->gpio_chip); - return ret < 0 ? ret : err; + return 0; } |