pinctrl: sh-pfc: Unlock on error in sh_pfc_func_set_mux()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Aug 2019 09:39:27 +0000 (12:39 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 12 Sep 2019 11:59:43 +0000 (12:59 +0100)
commita5ea8e99959728fca3d3b811ffda25975121fdf4
tree6e1eaa893e836c2111149bcfc192ed3b9040d746
parent1aab2f9d399ddfb74951654a8598a299de5bdb8c
pinctrl: sh-pfc: Unlock on error in sh_pfc_func_set_mux()

We need to unlock and enable IRQs before we return on this error path.

Fixes: 8a0cc47ccc7c ("pinctrl: sh-pfc: Rollback to mux if required when the gpio is freed")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20190827093927.GB8443@mwanda
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/pinctrl.c