gpio: pl061: returning with lock held in pl061_irq_type()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Oct 2015 07:12:01 +0000 (10:12 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Oct 2015 14:43:51 +0000 (16:43 +0200)
commit21d4de1469a1da20a14a745c5f49488bba417ea7
treed0c39132649b032b524328ea7d0abf88a4134795
parent78856ac0dd33036ae08a18b644e9fa40b30ee011
gpio: pl061: returning with lock held in pl061_irq_type()

We were returning with "chip->lock" held by mistake.  It's safe to
move the return to before we take the spinlock.

Fixes: 1dbf7f299f90 ('gpio: pl061: detail IRQ trigger handling')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c