aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ns9xxx/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ns9xxx/irq.c')
-rw-r--r--arch/arm/mach-ns9xxx/irq.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/arm/mach-ns9xxx/irq.c b/arch/arm/mach-ns9xxx/irq.c
index 038f24d47023..389fa5c669de 100644
--- a/arch/arm/mach-ns9xxx/irq.c
+++ b/arch/arm/mach-ns9xxx/irq.c
@@ -22,40 +22,40 @@
22#define irq2prio(i) (i) 22#define irq2prio(i) (i)
23#define prio2irq(p) (p) 23#define prio2irq(p) (p)
24 24
25static void ns9xxx_mask_irq(unsigned int irq) 25static void ns9xxx_mask_irq(struct irq_data *d)
26{ 26{
27 /* XXX: better use cpp symbols */ 27 /* XXX: better use cpp symbols */
28 int prio = irq2prio(irq); 28 int prio = irq2prio(d->irq);
29 u32 ic = __raw_readl(SYS_IC(prio / 4)); 29 u32 ic = __raw_readl(SYS_IC(prio / 4));
30 ic &= ~(1 << (7 + 8 * (3 - (prio & 3)))); 30 ic &= ~(1 << (7 + 8 * (3 - (prio & 3))));
31 __raw_writel(ic, SYS_IC(prio / 4)); 31 __raw_writel(ic, SYS_IC(prio / 4));
32} 32}
33 33
34static void ns9xxx_ack_irq(unsigned int irq) 34static void ns9xxx_ack_irq(struct irq_data *d)
35{ 35{
36 __raw_writel(0, SYS_ISRADDR); 36 __raw_writel(0, SYS_ISRADDR);
37} 37}
38 38
39static void ns9xxx_maskack_irq(unsigned int irq) 39static void ns9xxx_maskack_irq(struct irq_data *d)
40{ 40{
41 ns9xxx_mask_irq(irq); 41 ns9xxx_mask_irq(d);
42 ns9xxx_ack_irq(irq); 42 ns9xxx_ack_irq(d);
43} 43}
44 44
45static void ns9xxx_unmask_irq(unsigned int irq) 45static void ns9xxx_unmask_irq(struct irq_data *d)
46{ 46{
47 /* XXX: better use cpp symbols */ 47 /* XXX: better use cpp symbols */
48 int prio = irq2prio(irq); 48 int prio = irq2prio(d->irq);
49 u32 ic = __raw_readl(SYS_IC(prio / 4)); 49 u32 ic = __raw_readl(SYS_IC(prio / 4));
50 ic |= 1 << (7 + 8 * (3 - (prio & 3))); 50 ic |= 1 << (7 + 8 * (3 - (prio & 3)));
51 __raw_writel(ic, SYS_IC(prio / 4)); 51 __raw_writel(ic, SYS_IC(prio / 4));
52} 52}
53 53
54static struct irq_chip ns9xxx_chip = { 54static struct irq_chip ns9xxx_chip = {
55 .ack = ns9xxx_ack_irq, 55 .irq_ack = ns9xxx_ack_irq,
56 .mask = ns9xxx_mask_irq, 56 .irq_mask = ns9xxx_mask_irq,
57 .mask_ack = ns9xxx_maskack_irq, 57 .irq_mask_ack = ns9xxx_maskack_irq,
58 .unmask = ns9xxx_unmask_irq, 58 .irq_unmask = ns9xxx_unmask_irq,
59}; 59};
60 60
61#if 0 61#if 0
@@ -92,10 +92,10 @@ static void handle_prio_irq(unsigned int irq, struct irq_desc *desc)
92 92
93 if (desc->status & IRQ_DISABLED) 93 if (desc->status & IRQ_DISABLED)
94out_mask: 94out_mask:
95 desc->chip->mask(irq); 95 desc->irq_data.chip->irq_mask(&desc->irq_data);
96 96
97 /* ack unconditionally to unmask lower prio irqs */ 97 /* ack unconditionally to unmask lower prio irqs */
98 desc->chip->ack(irq); 98 desc->irq_data.chip->irq_ack(&desc->irq_data);
99 99
100 raw_spin_unlock(&desc->lock); 100 raw_spin_unlock(&desc->lock);
101} 101}