gpio: samsung: fixes build warning with s3c2410_defconfig
authorKukjin Kim <[email protected]>
Wed, 13 Feb 2013 05:01:38 +0000 (21:01 -0800)
committerKukjin Kim <[email protected]>
Tue, 5 Mar 2013 11:21:36 +0000 (20:21 +0900)
commit 7b45ed96 ("ARM: S3C24XX: handle s3c2412 eints using new
infrastructure") introduced build warning and this patch fixes
that:

drivers/gpio/gpio-samsung.c: In function 's3c24xx_gpiolib_fbank_to_irq':
drivers/gpio/gpio-samsung.c:1126:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]

Reported-by: kbuild test robot <[email protected]>
Cc: Heiko Stuebner <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
drivers/gpio/gpio-samsung.c

index db098cea3a55f2fb6c7d0802969e70a22eb25d15..58aa28fb5889422ce485c3badae78a55bab3afa8 100644 (file)
@@ -1122,11 +1122,12 @@ int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset)
 #ifdef CONFIG_PLAT_S3C24XX
 static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset)
 {
-       if (offset < 4)
+       if (offset < 4) {
                if (soc_is_s3c2412())
                        return IRQ_EINT0_2412 + offset;
                else
                        return IRQ_EINT0 + offset;
+       }
 
        if (offset < 8)
                return IRQ_EINT4 + offset - 4;