From: Axel Lin Date: Tue, 16 Dec 2014 06:22:27 +0000 (+0800) Subject: gpio: sx150x: Fix comparing wrong value with chip->irq_masked X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aab0b129cc73f7f01fad3a05fe61f03525087783;p=linux-beck.git gpio: sx150x: Fix comparing wrong value with chip->irq_masked Fix a copy-paste bug. Signed-off-by: Axel Lin Reviewed-by: Alexandre Courbot Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-sx150x.c b/drivers/gpio/gpio-sx150x.c index b32fb38ac5c9..20573ac714fc 100644 --- a/drivers/gpio/gpio-sx150x.c +++ b/drivers/gpio/gpio-sx150x.c @@ -436,7 +436,7 @@ static void sx150x_irq_bus_sync_unlock(struct irq_data *d) /* Avoid updates if nothing changed */ if (chip->dev_sense == chip->irq_sense && - chip->dev_sense == chip->irq_masked) + chip->dev_masked == chip->irq_masked) goto out; chip->dev_sense = chip->irq_sense;