]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: omap: Fix missing raw locks conversion
authorAxel Lin <axel.lin@ingics.com>
Wed, 5 Aug 2015 14:37:41 +0000 (22:37 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Aug 2015 12:43:23 +0000 (14:43 +0200)
Fix below build warning:
  CC      drivers/gpio/gpio-omap.o
drivers/gpio/gpio-omap.c: In function 'omap_gpio_irq_type':
drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [enabled by default]
include/linux/spinlock.h:360:29: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *'

Fixes: commit 4dbada2be460 ("gpio: omap: use raw locks for locking")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c

index dba67b230e981209368ef0096f77550402f26862..466fe70cf303c81b8d4146e0e801ee8fa6fb5e2b 100644 (file)
@@ -501,7 +501,7 @@ static int omap_gpio_irq_type(struct irq_data *d, unsigned type)
        raw_spin_lock_irqsave(&bank->lock, flags);
        retval = omap_set_gpio_triggering(bank, offset, type);
        if (retval) {
-               spin_unlock_irqrestore(&bank->lock, flags);
+               raw_spin_unlock_irqrestore(&bank->lock, flags);
                goto error;
        }
        omap_gpio_init_irq(bank, offset);