diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-09-18 18:22:24 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-09-25 05:25:46 -0400 |
commit | 610300e8f4f833904096ca1233ffd9dbd73fb11f (patch) | |
tree | 2b8e26c511edbbfc666af184a3de984c03d06220 /arch/arm/mach-iop33x/irq.c | |
parent | 38ce73ebd74a9a1738b73619557f2397c59ba628 (diff) |
[ARM] 3826/1: iop3xx: remove IOP3??_IRQ_OFS irq offset
Get rid of the unused IOP3??_IRQ_OFS irq offset define, start IRQ
numbering from zero.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop33x/irq.c')
-rw-r--r-- | arch/arm/mach-iop33x/irq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-iop33x/irq.c b/arch/arm/mach-iop33x/irq.c index d667439c8573..675ed3989973 100644 --- a/arch/arm/mach-iop33x/irq.c +++ b/arch/arm/mach-iop33x/irq.c | |||
@@ -60,28 +60,28 @@ static inline void intstr_write1(u32 val) | |||
60 | static void | 60 | static void |
61 | iop331_irq_mask1 (unsigned int irq) | 61 | iop331_irq_mask1 (unsigned int irq) |
62 | { | 62 | { |
63 | iop331_mask0 &= ~(1 << (irq - IOP331_IRQ_OFS)); | 63 | iop331_mask0 &= ~(1 << irq); |
64 | intctl_write0(iop331_mask0); | 64 | intctl_write0(iop331_mask0); |
65 | } | 65 | } |
66 | 66 | ||
67 | static void | 67 | static void |
68 | iop331_irq_mask2 (unsigned int irq) | 68 | iop331_irq_mask2 (unsigned int irq) |
69 | { | 69 | { |
70 | iop331_mask1 &= ~(1 << (irq - IOP331_IRQ_OFS - 32)); | 70 | iop331_mask1 &= ~(1 << (irq - 32)); |
71 | intctl_write1(iop331_mask1); | 71 | intctl_write1(iop331_mask1); |
72 | } | 72 | } |
73 | 73 | ||
74 | static void | 74 | static void |
75 | iop331_irq_unmask1(unsigned int irq) | 75 | iop331_irq_unmask1(unsigned int irq) |
76 | { | 76 | { |
77 | iop331_mask0 |= (1 << (irq - IOP331_IRQ_OFS)); | 77 | iop331_mask0 |= (1 << irq); |
78 | intctl_write0(iop331_mask0); | 78 | intctl_write0(iop331_mask0); |
79 | } | 79 | } |
80 | 80 | ||
81 | static void | 81 | static void |
82 | iop331_irq_unmask2(unsigned int irq) | 82 | iop331_irq_unmask2(unsigned int irq) |
83 | { | 83 | { |
84 | iop331_mask1 |= (1 << (irq - IOP331_IRQ_OFS - 32)); | 84 | iop331_mask1 |= (1 << (irq - 32)); |
85 | intctl_write1(iop331_mask1); | 85 | intctl_write1(iop331_mask1); |
86 | } | 86 | } |
87 | 87 | ||
@@ -110,7 +110,7 @@ void __init iop331_init_irq(void) | |||
110 | if(machine_is_iq80331()) // all interrupts are inputs to chip | 110 | if(machine_is_iq80331()) // all interrupts are inputs to chip |
111 | *IOP3XX_PCIIRSR = 0x0f; | 111 | *IOP3XX_PCIIRSR = 0x0f; |
112 | 112 | ||
113 | for(i = IOP331_IRQ_OFS; i < NR_IRQS; i++) | 113 | for(i = 0; i < NR_IRQS; i++) |
114 | { | 114 | { |
115 | set_irq_chip(i, (i < 32) ? &iop331_irqchip1 : &iop331_irqchip2); | 115 | set_irq_chip(i, (i < 32) ? &iop331_irqchip1 : &iop331_irqchip2); |
116 | set_irq_handler(i, do_level_IRQ); | 116 | set_irq_handler(i, do_level_IRQ); |