diff options
Diffstat (limited to 'arch/arm/mach-stmp37xx/stmp37xx.c')
-rw-r--r-- | arch/arm/mach-stmp37xx/stmp37xx.c | 24 |
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 | */ |
46 | static void stmp37xx_ack_irq(unsigned int irq) | 46 | static 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 | ||
59 | static void stmp37xx_mask_irq(unsigned int irq) | 59 | static 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 | ||
66 | static void stmp37xx_unmask_irq(unsigned int irq) | 66 | static 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 | ||
73 | static struct irq_chip stmp37xx_chip = { | 73 | static 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 | ||
79 | void __init stmp37xx_init_irq(void) | 79 | void __init stmp37xx_init_irq(void) |