]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drivers/gpio/gpio-omap.c: convert comma to semicolon
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 13 Aug 2013 07:16:56 +0000 (09:16 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Aug 2013 15:14:29 +0000 (17:14 +0200)
Replace a comma between expression statements by a semicolon.  This changes
the semantics of the code, but given the current indentation appears to be
what is intended.

A simplified version of the semantic patch that performs this
transformation is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression e1,e2,e;
type T;
identifier i;
@@

 e1
-,
+;
 e2;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c

index 867efe57b0385efa33f3745b2681a642bceff8c3..0ff43552d472bf09d5ab0206437e62ae0392c6f1 100644 (file)
@@ -1030,7 +1030,7 @@ omap_mpuio_alloc_gc(struct gpio_bank *bank, unsigned int irq_start,
        ct->chip.irq_set_type = gpio_irq_type;
 
        if (bank->regs->wkup_en)
-               ct->chip.irq_set_wake = gpio_wake_enable,
+               ct->chip.irq_set_wake = gpio_wake_enable;
 
        ct->regs.mask = OMAP_MPUIO_GPIO_INT / bank->stride;
        irq_setup_generic_chip(gc, IRQ_MSK(num), IRQ_GC_INIT_MASK_CACHE,