aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/vic.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-11-29 04:20:21 -0500
committerLennert Buytenhek <buytenh@wantstofly.org>2011-01-13 11:18:20 -0500
commitf013c98dd2dee05334ab48573a7b674e0ee63b9d (patch)
treebed469851b8213ed70c1c1aabafde1745eea88e0 /arch/arm/common/vic.c
parent8231e74150cc3731f48879f804d47c8f061c8777 (diff)
ARM: vic: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/common/vic.c')
-rw-r--r--arch/arm/common/vic.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/common/vic.c b/arch/arm/common/vic.c
index ba65f6eedca6..9dce36e372ff 100644
--- a/arch/arm/common/vic.c
+++ b/arch/arm/common/vic.c
@@ -204,26 +204,26 @@ static void __init vic_pm_register(void __iomem *base, unsigned int irq, u32 res
204static inline void vic_pm_register(void __iomem *base, unsigned int irq, u32 arg1) { } 204static inline void vic_pm_register(void __iomem *base, unsigned int irq, u32 arg1) { }
205#endif /* CONFIG_PM */ 205#endif /* CONFIG_PM */
206 206
207static void vic_ack_irq(unsigned int irq) 207static void vic_ack_irq(struct irq_data *d)
208{ 208{
209 void __iomem *base = get_irq_chip_data(irq); 209 void __iomem *base = irq_data_get_irq_chip_data(d);
210 irq &= 31; 210 unsigned int irq = d->irq & 31;
211 writel(1 << irq, base + VIC_INT_ENABLE_CLEAR); 211 writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
212 /* moreover, clear the soft-triggered, in case it was the reason */ 212 /* moreover, clear the soft-triggered, in case it was the reason */
213 writel(1 << irq, base + VIC_INT_SOFT_CLEAR); 213 writel(1 << irq, base + VIC_INT_SOFT_CLEAR);
214} 214}
215 215
216static void vic_mask_irq(unsigned int irq) 216static void vic_mask_irq(struct irq_data *d)
217{ 217{
218 void __iomem *base = get_irq_chip_data(irq); 218 void __iomem *base = irq_data_get_irq_chip_data(d);
219 irq &= 31; 219 unsigned int irq = d->irq & 31;
220 writel(1 << irq, base + VIC_INT_ENABLE_CLEAR); 220 writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
221} 221}
222 222
223static void vic_unmask_irq(unsigned int irq) 223static void vic_unmask_irq(struct irq_data *d)
224{ 224{
225 void __iomem *base = get_irq_chip_data(irq); 225 void __iomem *base = irq_data_get_irq_chip_data(d);
226 irq &= 31; 226 unsigned int irq = d->irq & 31;
227 writel(1 << irq, base + VIC_INT_ENABLE); 227 writel(1 << irq, base + VIC_INT_ENABLE);
228} 228}
229 229
@@ -242,10 +242,10 @@ static struct vic_device *vic_from_irq(unsigned int irq)
242 return NULL; 242 return NULL;
243} 243}
244 244
245static int vic_set_wake(unsigned int irq, unsigned int on) 245static int vic_set_wake(struct irq_data *d, unsigned int on)
246{ 246{
247 struct vic_device *v = vic_from_irq(irq); 247 struct vic_device *v = vic_from_irq(d->irq);
248 unsigned int off = irq & 31; 248 unsigned int off = d->irq & 31;
249 u32 bit = 1 << off; 249 u32 bit = 1 << off;
250 250
251 if (!v) 251 if (!v)
@@ -267,10 +267,10 @@ static int vic_set_wake(unsigned int irq, unsigned int on)
267 267
268static struct irq_chip vic_chip = { 268static struct irq_chip vic_chip = {
269 .name = "VIC", 269 .name = "VIC",
270 .ack = vic_ack_irq, 270 .irq_ack = vic_ack_irq,
271 .mask = vic_mask_irq, 271 .irq_mask = vic_mask_irq,
272 .unmask = vic_unmask_irq, 272 .irq_unmask = vic_unmask_irq,
273 .set_wake = vic_set_wake, 273 .irq_set_wake = vic_set_wake,
274}; 274};
275 275
276static void __init vic_disable(void __iomem *base) 276static void __init vic_disable(void __iomem *base)