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-iop32x | |
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-iop32x')
-rw-r--r-- | arch/arm/mach-iop32x/irq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-iop32x/irq.c b/arch/arm/mach-iop32x/irq.c index cdd6943ce768..ff049e02f5f7 100644 --- a/arch/arm/mach-iop32x/irq.c +++ b/arch/arm/mach-iop32x/irq.c | |||
@@ -43,7 +43,7 @@ static void | |||
43 | iop321_irq_mask (unsigned int irq) | 43 | iop321_irq_mask (unsigned int irq) |
44 | { | 44 | { |
45 | 45 | ||
46 | iop321_mask &= ~(1 << (irq - IOP321_IRQ_OFS)); | 46 | iop321_mask &= ~(1 << irq); |
47 | 47 | ||
48 | intctl_write(iop321_mask); | 48 | intctl_write(iop321_mask); |
49 | } | 49 | } |
@@ -51,7 +51,7 @@ iop321_irq_mask (unsigned int irq) | |||
51 | static void | 51 | static void |
52 | iop321_irq_unmask (unsigned int irq) | 52 | iop321_irq_unmask (unsigned int irq) |
53 | { | 53 | { |
54 | iop321_mask |= (1 << (irq - IOP321_IRQ_OFS)); | 54 | iop321_mask |= (1 << irq); |
55 | 55 | ||
56 | intctl_write(iop321_mask); | 56 | intctl_write(iop321_mask); |
57 | } | 57 | } |
@@ -73,7 +73,7 @@ void __init iop321_init_irq(void) | |||
73 | machine_is_iq31244()) // all interrupts are inputs to chip | 73 | machine_is_iq31244()) // all interrupts are inputs to chip |
74 | *IOP3XX_PCIIRSR = 0x0f; | 74 | *IOP3XX_PCIIRSR = 0x0f; |
75 | 75 | ||
76 | for(i = IOP321_IRQ_OFS; i < NR_IRQS; i++) | 76 | for(i = 0; i < NR_IRQS; i++) |
77 | { | 77 | { |
78 | set_irq_chip(i, &ext_chip); | 78 | set_irq_chip(i, &ext_chip); |
79 | set_irq_handler(i, do_level_IRQ); | 79 | set_irq_handler(i, do_level_IRQ); |