File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ static unsigned int sirfsoc_gpio_irq_startup(struct irq_data *d)
598
598
{
599
599
struct sirfsoc_gpio_bank * bank = irq_data_get_irq_chip_data (d );
600
600
601
- if (gpio_lock_as_irq (& bank -> chip .gc , d -> hwirq ))
601
+ if (gpio_lock_as_irq (& bank -> chip .gc , d -> hwirq % SIRFSOC_GPIO_BANK_SIZE ))
602
602
dev_err (bank -> chip .gc .dev ,
603
603
"unable to lock HW IRQ %lu for IRQ\n" ,
604
604
d -> hwirq );
@@ -611,7 +611,7 @@ static void sirfsoc_gpio_irq_shutdown(struct irq_data *d)
611
611
struct sirfsoc_gpio_bank * bank = irq_data_get_irq_chip_data (d );
612
612
613
613
sirfsoc_gpio_irq_mask (d );
614
- gpio_unlock_as_irq (& bank -> chip .gc , d -> hwirq );
614
+ gpio_unlock_as_irq (& bank -> chip .gc , d -> hwirq % SIRFSOC_GPIO_BANK_SIZE );
615
615
}
616
616
617
617
static struct irq_chip sirfsoc_irq_chip = {
You can’t perform that action at this time.
0 commit comments