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 427564f..1eb5a2e 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;
        }