aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-samsung.c
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2013-02-12 21:01:38 -0800
committerKukjin Kim <kgene.kim@samsung.com>2013-03-05 20:21:36 +0900
commitd97fedef912832611b668fa7ece8e8ff54a6a590 (patch)
treee5bce68a06b12c01528ae0781049f3debc555bba /drivers/gpio/gpio-samsung.c
parentARM: S3C24XX: handle s3c2412 eints using new infrastructure (diff)
downloadlinux-dev-d97fedef912832611b668fa7ece8e8ff54a6a590.tar.xz
linux-dev-d97fedef912832611b668fa7ece8e8ff54a6a590.zip
gpio: samsung: fixes build warning with s3c2410_defconfig
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 <fengguang.wu@intel.com> Cc: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/gpio/gpio-samsung.c')
-rw-r--r--drivers/gpio/gpio-samsung.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index db098cea3a55..58aa28fb5889 100644
--- a/drivers/gpio/gpio-samsung.c
+++ b/drivers/gpio/gpio-samsung.c
@@ -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;