From: Axel Lin Date: Mon, 13 Jun 2016 05:48:53 +0000 (+0800) Subject: gpio: 104-idi-48: Fix missing spin_lock_init for ack_lock X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0b305ccc1b545d3389068ddc3548cbc877513b97;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: William Breathitt Gray Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-104-idi-48.c b/drivers/gpio/gpio-104-idi-48.c index 6c75c83baf5a..2d2763ea1a68 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);