diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:31:33 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:34 -0500 |
commit | c3ef3ccadb0d8fc4f8de89a63edf0cee979a7235 (patch) | |
tree | e91c056c265a6d0086e6b2e98f88600cc6ff2787 /arch/arm/mach-integrator | |
parent | c971ab0d9649d2bc0469da3c976297e91a3e2d35 (diff) |
ARM: integrator: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 48 |
2 files changed, 32 insertions, 32 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 2774df8021dc..b666443b5cbb 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -156,21 +156,21 @@ static void __init ap_map_io(void) | |||
156 | 156 | ||
157 | #define INTEGRATOR_SC_VALID_INT 0x003fffff | 157 | #define INTEGRATOR_SC_VALID_INT 0x003fffff |
158 | 158 | ||
159 | static void sc_mask_irq(unsigned int irq) | 159 | static void sc_mask_irq(struct irq_data *d) |
160 | { | 160 | { |
161 | writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_CLEAR); | 161 | writel(1 << d->irq, VA_IC_BASE + IRQ_ENABLE_CLEAR); |
162 | } | 162 | } |
163 | 163 | ||
164 | static void sc_unmask_irq(unsigned int irq) | 164 | static void sc_unmask_irq(struct irq_data *d) |
165 | { | 165 | { |
166 | writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_SET); | 166 | writel(1 << d->irq, VA_IC_BASE + IRQ_ENABLE_SET); |
167 | } | 167 | } |
168 | 168 | ||
169 | static struct irq_chip sc_chip = { | 169 | static struct irq_chip sc_chip = { |
170 | .name = "SC", | 170 | .name = "SC", |
171 | .ack = sc_mask_irq, | 171 | .irq_ack = sc_mask_irq, |
172 | .mask = sc_mask_irq, | 172 | .irq_mask = sc_mask_irq, |
173 | .unmask = sc_unmask_irq, | 173 | .irq_unmask = sc_unmask_irq, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | static void __init ap_init_irq(void) | 176 | static void __init ap_init_irq(void) |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 85e48a5f77b9..e9327da1382e 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -146,61 +146,61 @@ static void __init intcp_map_io(void) | |||
146 | #define sic_writel __raw_writel | 146 | #define sic_writel __raw_writel |
147 | #define sic_readl __raw_readl | 147 | #define sic_readl __raw_readl |
148 | 148 | ||
149 | static void cic_mask_irq(unsigned int irq) | 149 | static void cic_mask_irq(struct irq_data *d) |
150 | { | 150 | { |
151 | irq -= IRQ_CIC_START; | 151 | unsigned int irq = d->irq - IRQ_CIC_START; |
152 | cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_CLEAR); | 152 | cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_CLEAR); |
153 | } | 153 | } |
154 | 154 | ||
155 | static void cic_unmask_irq(unsigned int irq) | 155 | static void cic_unmask_irq(struct irq_data *d) |
156 | { | 156 | { |
157 | irq -= IRQ_CIC_START; | 157 | unsigned int irq = d->irq - IRQ_CIC_START; |
158 | cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_SET); | 158 | cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_SET); |
159 | } | 159 | } |
160 | 160 | ||
161 | static struct irq_chip cic_chip = { | 161 | static struct irq_chip cic_chip = { |
162 | .name = "CIC", | 162 | .name = "CIC", |
163 | .ack = cic_mask_irq, | 163 | .irq_ack = cic_mask_irq, |
164 | .mask = cic_mask_irq, | 164 | .irq_mask = cic_mask_irq, |
165 | .unmask = cic_unmask_irq, | 165 | .irq_unmask = cic_unmask_irq, |
166 | }; | 166 | }; |
167 | 167 | ||
168 | static void pic_mask_irq(unsigned int irq) | 168 | static void pic_mask_irq(struct irq_data *d) |
169 | { | 169 | { |
170 | irq -= IRQ_PIC_START; | 170 | unsigned int irq = d->irq - IRQ_PIC_START; |
171 | pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_CLEAR); | 171 | pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_CLEAR); |
172 | } | 172 | } |
173 | 173 | ||
174 | static void pic_unmask_irq(unsigned int irq) | 174 | static void pic_unmask_irq(struct irq_data *d) |
175 | { | 175 | { |
176 | irq -= IRQ_PIC_START; | 176 | unsigned int irq = d->irq - IRQ_PIC_START; |
177 | pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_SET); | 177 | pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_SET); |
178 | } | 178 | } |
179 | 179 | ||
180 | static struct irq_chip pic_chip = { | 180 | static struct irq_chip pic_chip = { |
181 | .name = "PIC", | 181 | .name = "PIC", |
182 | .ack = pic_mask_irq, | 182 | .irq_ack = pic_mask_irq, |
183 | .mask = pic_mask_irq, | 183 | .irq_mask = pic_mask_irq, |
184 | .unmask = pic_unmask_irq, | 184 | .irq_unmask = pic_unmask_irq, |
185 | }; | 185 | }; |
186 | 186 | ||
187 | static void sic_mask_irq(unsigned int irq) | 187 | static void sic_mask_irq(struct irq_data *d) |
188 | { | 188 | { |
189 | irq -= IRQ_SIC_START; | 189 | unsigned int irq = d->irq - IRQ_SIC_START; |
190 | sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_CLEAR); | 190 | sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_CLEAR); |
191 | } | 191 | } |
192 | 192 | ||
193 | static void sic_unmask_irq(unsigned int irq) | 193 | static void sic_unmask_irq(struct irq_data *d) |
194 | { | 194 | { |
195 | irq -= IRQ_SIC_START; | 195 | unsigned int irq = d->irq - IRQ_SIC_START; |
196 | sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_SET); | 196 | sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_SET); |
197 | } | 197 | } |
198 | 198 | ||
199 | static struct irq_chip sic_chip = { | 199 | static struct irq_chip sic_chip = { |
200 | .name = "SIC", | 200 | .name = "SIC", |
201 | .ack = sic_mask_irq, | 201 | .irq_ack = sic_mask_irq, |
202 | .mask = sic_mask_irq, | 202 | .irq_mask = sic_mask_irq, |
203 | .unmask = sic_unmask_irq, | 203 | .irq_unmask = sic_unmask_irq, |
204 | }; | 204 | }; |
205 | 205 | ||
206 | static void | 206 | static void |