diff mbox

gpio: 104-idi-48: Fix missing spin_lock_init for ack_lock

Message ID 1465796933.11725.1.camel@ingics.com
State New
Headers show

Commit Message

Axel Lin June 13, 2016, 5:48 a.m. UTC
Fixes: 9ae482104cb9 ("gpio: 104-idi-48: Clear pending interrupt once in IRQ handler")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/gpio-104-idi-48.c | 1 +
 1 file changed, 1 insertion(+)

Comments

William Breathitt Gray June 13, 2016, 12:22 p.m. UTC | #1
On Mon, Jun 13, 2016 at 01:48:53PM +0800, Axel Lin wrote:
>Fixes: 9ae482104cb9 ("gpio: 104-idi-48: Clear pending interrupt once in IRQ handler")
>Signed-off-by: Axel Lin <axel.lin@ingics.com>
>---
> drivers/gpio/gpio-104-idi-48.c | 1 +
> 1 file changed, 1 insertion(+)
>
>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);
> 
>-- 
>2.5.0

Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Thanks,

William Breathitt Gray
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Linus Walleij June 13, 2016, 12:48 p.m. UTC | #2
On Mon, Jun 13, 2016 at 7:48 AM, Axel Lin <axel.lin@ingics.com> wrote:

> Fixes: 9ae482104cb9 ("gpio: 104-idi-48: Clear pending interrupt once in IRQ handler")
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Patch applied for fixes with William's ACK.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);