diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:26:56 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:24 -0500 |
commit | 8ad357ca4dd99a0f277528e63746bb04629de213 (patch) | |
tree | 8bb751a90240be887d0732ae40f8de57deebcd22 | |
parent | cf1d4d509903ede1379912c5c0587eea02d19106 (diff) |
ARM: clps711x: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
-rw-r--r-- | arch/arm/mach-clps711x/irq.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/arch/arm/mach-clps711x/irq.c b/arch/arm/mach-clps711x/irq.c index 9a12d8562284..86da7a1b2bbe 100644 --- a/arch/arm/mach-clps711x/irq.c +++ b/arch/arm/mach-clps711x/irq.c | |||
@@ -27,24 +27,24 @@ | |||
27 | 27 | ||
28 | #include <asm/hardware/clps7111.h> | 28 | #include <asm/hardware/clps7111.h> |
29 | 29 | ||
30 | static void int1_mask(unsigned int irq) | 30 | static void int1_mask(struct irq_data *d) |
31 | { | 31 | { |
32 | u32 intmr1; | 32 | u32 intmr1; |
33 | 33 | ||
34 | intmr1 = clps_readl(INTMR1); | 34 | intmr1 = clps_readl(INTMR1); |
35 | intmr1 &= ~(1 << irq); | 35 | intmr1 &= ~(1 << d->irq); |
36 | clps_writel(intmr1, INTMR1); | 36 | clps_writel(intmr1, INTMR1); |
37 | } | 37 | } |
38 | 38 | ||
39 | static void int1_ack(unsigned int irq) | 39 | static void int1_ack(struct irq_data *d) |
40 | { | 40 | { |
41 | u32 intmr1; | 41 | u32 intmr1; |
42 | 42 | ||
43 | intmr1 = clps_readl(INTMR1); | 43 | intmr1 = clps_readl(INTMR1); |
44 | intmr1 &= ~(1 << irq); | 44 | intmr1 &= ~(1 << d->irq); |
45 | clps_writel(intmr1, INTMR1); | 45 | clps_writel(intmr1, INTMR1); |
46 | 46 | ||
47 | switch (irq) { | 47 | switch (d->irq) { |
48 | case IRQ_CSINT: clps_writel(0, COEOI); break; | 48 | case IRQ_CSINT: clps_writel(0, COEOI); break; |
49 | case IRQ_TC1OI: clps_writel(0, TC1EOI); break; | 49 | case IRQ_TC1OI: clps_writel(0, TC1EOI); break; |
50 | case IRQ_TC2OI: clps_writel(0, TC2EOI); break; | 50 | case IRQ_TC2OI: clps_writel(0, TC2EOI); break; |
@@ -54,56 +54,56 @@ static void int1_ack(unsigned int irq) | |||
54 | } | 54 | } |
55 | } | 55 | } |
56 | 56 | ||
57 | static void int1_unmask(unsigned int irq) | 57 | static void int1_unmask(struct irq_data *d) |
58 | { | 58 | { |
59 | u32 intmr1; | 59 | u32 intmr1; |
60 | 60 | ||
61 | intmr1 = clps_readl(INTMR1); | 61 | intmr1 = clps_readl(INTMR1); |
62 | intmr1 |= 1 << irq; | 62 | intmr1 |= 1 << d->irq; |
63 | clps_writel(intmr1, INTMR1); | 63 | clps_writel(intmr1, INTMR1); |
64 | } | 64 | } |
65 | 65 | ||
66 | static struct irq_chip int1_chip = { | 66 | static struct irq_chip int1_chip = { |
67 | .ack = int1_ack, | 67 | .irq_ack = int1_ack, |
68 | .mask = int1_mask, | 68 | .irq_mask = int1_mask, |
69 | .unmask = int1_unmask, | 69 | .irq_unmask = int1_unmask, |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static void int2_mask(unsigned int irq) | 72 | static void int2_mask(struct irq_data *d) |
73 | { | 73 | { |
74 | u32 intmr2; | 74 | u32 intmr2; |
75 | 75 | ||
76 | intmr2 = clps_readl(INTMR2); | 76 | intmr2 = clps_readl(INTMR2); |
77 | intmr2 &= ~(1 << (irq - 16)); | 77 | intmr2 &= ~(1 << (d->irq - 16)); |
78 | clps_writel(intmr2, INTMR2); | 78 | clps_writel(intmr2, INTMR2); |
79 | } | 79 | } |
80 | 80 | ||
81 | static void int2_ack(unsigned int irq) | 81 | static void int2_ack(struct irq_data *d) |
82 | { | 82 | { |
83 | u32 intmr2; | 83 | u32 intmr2; |
84 | 84 | ||
85 | intmr2 = clps_readl(INTMR2); | 85 | intmr2 = clps_readl(INTMR2); |
86 | intmr2 &= ~(1 << (irq - 16)); | 86 | intmr2 &= ~(1 << (d->irq - 16)); |
87 | clps_writel(intmr2, INTMR2); | 87 | clps_writel(intmr2, INTMR2); |
88 | 88 | ||
89 | switch (irq) { | 89 | switch (d->irq) { |
90 | case IRQ_KBDINT: clps_writel(0, KBDEOI); break; | 90 | case IRQ_KBDINT: clps_writel(0, KBDEOI); break; |
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
94 | static void int2_unmask(unsigned int irq) | 94 | static void int2_unmask(struct irq_data *d) |
95 | { | 95 | { |
96 | u32 intmr2; | 96 | u32 intmr2; |
97 | 97 | ||
98 | intmr2 = clps_readl(INTMR2); | 98 | intmr2 = clps_readl(INTMR2); |
99 | intmr2 |= 1 << (irq - 16); | 99 | intmr2 |= 1 << (d->irq - 16); |
100 | clps_writel(intmr2, INTMR2); | 100 | clps_writel(intmr2, INTMR2); |
101 | } | 101 | } |
102 | 102 | ||
103 | static struct irq_chip int2_chip = { | 103 | static struct irq_chip int2_chip = { |
104 | .ack = int2_ack, | 104 | .irq_ack = int2_ack, |
105 | .mask = int2_mask, | 105 | .irq_mask = int2_mask, |
106 | .unmask = int2_unmask, | 106 | .irq_unmask = int2_unmask, |
107 | }; | 107 | }; |
108 | 108 | ||
109 | void __init clps711x_init_irq(void) | 109 | void __init clps711x_init_irq(void) |