Skip to content

Commit 4532c63

Browse files
committed
BCM2708: armctrl: remove irq bank 3
irq bank 3 was needed by the pinctrl-bcm2708 and bcm2708_gpio combination. It is no longer required. Signed-off-by: Noralf Tronnes <[email protected]>
1 parent efafe26 commit 4532c63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/arm/mach-bcm2708/armctrl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void armctrl_unmask_irq(struct irq_data *d)
8484
#ifdef CONFIG_OF
8585

8686
#define NR_IRQS_BANK0 21
87-
#define NR_BANKS 3 + 1 /* bank 3 is used for GPIO interrupts */
87+
#define NR_BANKS 3
8888
#define IRQS_PER_BANK 32
8989

9090
/* from drivers/irqchip/irq-bcm2835.c */
@@ -108,10 +108,8 @@ static int armctrl_xlate(struct irq_domain *d, struct device_node *ctrlr,
108108
*out_hwirq = ARM_IRQ0_BASE + intspec[1];
109109
else if (intspec[0] == 1)
110110
*out_hwirq = ARM_IRQ1_BASE + intspec[1];
111-
else if (intspec[0] == 2)
112-
*out_hwirq = ARM_IRQ2_BASE + intspec[1];
113111
else
114-
*out_hwirq = GPIO_IRQ_START + intspec[1];
112+
*out_hwirq = ARM_IRQ2_BASE + intspec[1];
115113

116114
/* reverse remap_irqs[] */
117115
switch (*out_hwirq) {

0 commit comments

Comments
 (0)