diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-abx500.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index 720e77998e64..caecdd373061 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c | |||
@@ -275,8 +275,7 @@ static int abx500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) | |||
275 | * To solve this quandry, we have placed the read-in values | 275 | * To solve this quandry, we have placed the read-in values |
276 | * into the cluster information table. | 276 | * into the cluster information table. |
277 | */ | 277 | */ |
278 | hwirq = gpio + cluster->to_irq; | 278 | hwirq = gpio - cluster->start + cluster->to_irq; |
279 | |||
280 | return irq_create_mapping(pct->parent->domain, hwirq); | 279 | return irq_create_mapping(pct->parent->domain, hwirq); |
281 | } | 280 | } |
282 | } | 281 | } |