summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-06-13 05:48:53 (GMT)
committerRichard Weinberger <richard@nod.at>2016-06-22 22:29:29 (GMT)
commit0b305ccc1b545d3389068ddc3548cbc877513b97 (patch)
tree7520ce658e64282e350b6fa973a6520244db4fce /drivers
parent67016f6cdfd079e632bbc49e33178b2d558c120a (diff)
downloadlinux-0b305ccc1b545d3389068ddc3548cbc877513b97.tar.xz
gpio: 104-idi-48: Fix missing spin_lock_init for ack_lock
Fixes: 9ae482104cb9 ("gpio: 104-idi-48: Clear pending interrupt once in IRQ handler") Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-104-idi-48.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-104-idi-48.c b/drivers/gpio/gpio-104-idi-48.c
index 6c75c83..2d2763e 100644
--- a/drivers/gpio/gpio-104-idi-48.c
+++ b/drivers/gpio/gpio-104-idi-48.c
@@ -247,6 +247,7 @@ static int idi_48_probe(struct device *dev, unsigned int id)
idi48gpio->irq = irq[id];
spin_lock_init(&idi48gpio->lock);
+ spin_lock_init(&idi48gpio->ack_lock);
dev_set_drvdata(dev, idi48gpio);