aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-h720x/cpu-h7202.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-11-29 04:31:06 -0500
committerLennert Buytenhek <buytenh@wantstofly.org>2011-01-13 11:18:33 -0500
commitc971ab0d9649d2bc0469da3c976297e91a3e2d35 (patch)
tree7d1bd2d2b6c9bc20c8b2a378cbd1b110c84d9004 /arch/arm/mach-h720x/cpu-h7202.c
parent413802b6c8114972d5a1520412e6241326882273 (diff)
ARM: h720x: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-h720x/cpu-h7202.c')
-rw-r--r--arch/arm/mach-h720x/cpu-h7202.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-h720x/cpu-h7202.c b/arch/arm/mach-h720x/cpu-h7202.c
index fd33a19c813a..ac3f91442376 100644
--- a/arch/arm/mach-h720x/cpu-h7202.c
+++ b/arch/arm/mach-h720x/cpu-h7202.c
@@ -141,27 +141,27 @@ h7202_timer_interrupt(int irq, void *dev_id)
141/* 141/*
142 * mask multiplexed timer IRQs 142 * mask multiplexed timer IRQs
143 */ 143 */
144static void inline mask_timerx_irq (u32 irq) 144static void inline mask_timerx_irq(struct irq_data *d)
145{ 145{
146 unsigned int bit; 146 unsigned int bit;
147 bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1)); 147 bit = 2 << ((d->irq == IRQ_TIMER64B) ? 4 : (d->irq - IRQ_TIMER1));
148 CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) &= ~bit; 148 CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) &= ~bit;
149} 149}
150 150
151/* 151/*
152 * unmask multiplexed timer IRQs 152 * unmask multiplexed timer IRQs
153 */ 153 */
154static void inline unmask_timerx_irq (u32 irq) 154static void inline unmask_timerx_irq(struct irq_data *d)
155{ 155{
156 unsigned int bit; 156 unsigned int bit;
157 bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1)); 157 bit = 2 << ((d->irq == IRQ_TIMER64B) ? 4 : (d->irq - IRQ_TIMER1));
158 CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit; 158 CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit;
159} 159}
160 160
161static struct irq_chip h7202_timerx_chip = { 161static struct irq_chip h7202_timerx_chip = {
162 .ack = mask_timerx_irq, 162 .irq_ack = mask_timerx_irq,
163 .mask = mask_timerx_irq, 163 .irq_mask = mask_timerx_irq,
164 .unmask = unmask_timerx_irq, 164 .irq_unmask = unmask_timerx_irq,
165}; 165};
166 166
167static struct irqaction h7202_timer_irq = { 167static struct irqaction h7202_timer_irq = {