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