aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
1122#ifdef CONFIG_PLAT_S3C24XX 1122#ifdef CONFIG_PLAT_S3C24XX
1123static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset) 1123static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset)
1124{ 1124{
1125 if (offset < 4) 1125 if (offset < 4) {
1126 if (soc_is_s3c2412()) 1126 if (soc_is_s3c2412())
1127 return IRQ_EINT0_2412 + offset; 1127 return IRQ_EINT0_2412 + offset;
1128 else 1128 else
1129 return IRQ_EINT0 + offset; 1129 return IRQ_EINT0 + offset;
1130 }
1130 1131
1131 if (offset < 8) 1132 if (offset < 8)
1132 return IRQ_EINT4 + offset - 4; 1133 return IRQ_EINT4 + offset - 4;