aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stmp37xx
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-11-29 05:13:59 -0500
committerLennert Buytenhek <buytenh@wantstofly.org>2011-01-13 11:19:02 -0500
commitcb55bc5f1b7d7a5fd8bfc901bca0ed099ee0e1e9 (patch)
tree229245006c4dc9f33393bcc17a8e7cc807364721 /arch/arm/mach-stmp37xx
parent7940848aab2d16f1f6a7e77b957e40d10465f38a (diff)
ARM: stmp37xx: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-stmp37xx')
-rw-r--r--arch/arm/mach-stmp37xx/stmp37xx.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-stmp37xx/stmp37xx.c b/arch/arm/mach-stmp37xx/stmp37xx.c
index 8c7d6fb191a3..a9aed06ff376 100644
--- a/arch/arm/mach-stmp37xx/stmp37xx.c
+++ b/arch/arm/mach-stmp37xx/stmp37xx.c
@@ -43,11 +43,11 @@
43/* 43/*
44 * IRQ handling 44 * IRQ handling
45 */ 45 */
46static void stmp37xx_ack_irq(unsigned int irq) 46static void stmp37xx_ack_irq(struct irq_data *d)
47{ 47{
48 /* Disable IRQ */ 48 /* Disable IRQ */
49 stmp3xxx_clearl(0x04 << ((irq % 4) * 8), 49 stmp3xxx_clearl(0x04 << ((d->irq % 4) * 8),
50 REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + irq / 4 * 0x10); 50 REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + d->irq / 4 * 0x10);
51 51
52 /* ACK current interrupt */ 52 /* ACK current interrupt */
53 __raw_writel(1, REGS_ICOLL_BASE + HW_ICOLL_LEVELACK); 53 __raw_writel(1, REGS_ICOLL_BASE + HW_ICOLL_LEVELACK);
@@ -56,24 +56,24 @@ static void stmp37xx_ack_irq(unsigned int irq)
56 (void)__raw_readl(REGS_ICOLL_BASE + HW_ICOLL_STAT); 56 (void)__raw_readl(REGS_ICOLL_BASE + HW_ICOLL_STAT);
57} 57}
58 58
59static void stmp37xx_mask_irq(unsigned int irq) 59static void stmp37xx_mask_irq(struct irq_data *d)
60{ 60{
61 /* IRQ disable */ 61 /* IRQ disable */
62 stmp3xxx_clearl(0x04 << ((irq % 4) * 8), 62 stmp3xxx_clearl(0x04 << ((d->irq % 4) * 8),
63 REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + irq / 4 * 0x10); 63 REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + d->irq / 4 * 0x10);
64} 64}
65 65
66static void stmp37xx_unmask_irq(unsigned int irq) 66static void stmp37xx_unmask_irq(struct irq_data *d)
67{ 67{
68 /* IRQ enable */ 68 /* IRQ enable */
69 stmp3xxx_setl(0x04 << ((irq % 4) * 8), 69 stmp3xxx_setl(0x04 << ((d->irq % 4) * 8),
70 REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + irq / 4 * 0x10); 70 REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + d->irq / 4 * 0x10);
71} 71}
72 72
73static struct irq_chip stmp37xx_chip = { 73static struct irq_chip stmp37xx_chip = {
74 .ack = stmp37xx_ack_irq, 74 .irq_ack = stmp37xx_ack_irq,
75 .mask = stmp37xx_mask_irq, 75 .irq_mask = stmp37xx_mask_irq,
76 .unmask = stmp37xx_unmask_irq, 76 .irq_unmask = stmp37xx_unmask_irq,
77}; 77};
78 78
79void __init stmp37xx_init_irq(void) 79void __init stmp37xx_init_irq(void)