pinctrl: rockchip: Add missing irq_gc_unlock() call before return error
authorAxel Lin <axel.lin@ingics.com>
Sun, 23 Jun 2013 00:48:34 +0000 (08:48 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Jun 2013 13:20:32 +0000 (15:20 +0200)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c

index 427564f552b4c4a407449e2b6c2db9b3c0631c97..1eb5a2e43b060ec15b597ad4479f89782d7d6fb3 100644 (file)
@@ -1035,6 +1035,7 @@ static int rockchip_irq_set_type(struct irq_data *d, unsigned int type)
                polarity &= ~mask;
                break;
        default:
+               irq_gc_unlock(gc);
                return -EINVAL;
        }