diff options
Diffstat (limited to 'arch/arm/mach-lh7a40x/arch-kev7a400.c')
-rw-r--r-- | arch/arm/mach-lh7a40x/arch-kev7a400.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-lh7a40x/arch-kev7a400.c b/arch/arm/mach-lh7a40x/arch-kev7a400.c index 9088c16662e..71129c33c7d 100644 --- a/arch/arm/mach-lh7a40x/arch-kev7a400.c +++ b/arch/arm/mach-lh7a40x/arch-kev7a400.c | |||
@@ -46,28 +46,28 @@ void __init kev7a400_map_io(void) | |||
46 | 46 | ||
47 | static u16 CPLD_IRQ_mask; /* Mask for CPLD IRQs, 1 == unmasked */ | 47 | static u16 CPLD_IRQ_mask; /* Mask for CPLD IRQs, 1 == unmasked */ |
48 | 48 | ||
49 | static void kev7a400_ack_cpld_irq (u32 irq) | 49 | static void kev7a400_ack_cpld_irq(struct irq_data *d) |
50 | { | 50 | { |
51 | CPLD_CL_INT = 1 << (irq - IRQ_KEV7A400_CPLD); | 51 | CPLD_CL_INT = 1 << (d->irq - IRQ_KEV7A400_CPLD); |
52 | } | 52 | } |
53 | 53 | ||
54 | static void kev7a400_mask_cpld_irq (u32 irq) | 54 | static void kev7a400_mask_cpld_irq(struct irq_data *d) |
55 | { | 55 | { |
56 | CPLD_IRQ_mask &= ~(1 << (irq - IRQ_KEV7A400_CPLD)); | 56 | CPLD_IRQ_mask &= ~(1 << (d->irq - IRQ_KEV7A400_CPLD)); |
57 | CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask; | 57 | CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask; |
58 | } | 58 | } |
59 | 59 | ||
60 | static void kev7a400_unmask_cpld_irq (u32 irq) | 60 | static void kev7a400_unmask_cpld_irq(struct irq_data *d) |
61 | { | 61 | { |
62 | CPLD_IRQ_mask |= 1 << (irq - IRQ_KEV7A400_CPLD); | 62 | CPLD_IRQ_mask |= 1 << (d->irq - IRQ_KEV7A400_CPLD); |
63 | CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask; | 63 | CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask; |
64 | } | 64 | } |
65 | 65 | ||
66 | static struct irq_chip kev7a400_cpld_chip = { | 66 | static struct irq_chip kev7a400_cpld_chip = { |
67 | .name = "CPLD", | 67 | .name = "CPLD", |
68 | .ack = kev7a400_ack_cpld_irq, | 68 | .irq_ack = kev7a400_ack_cpld_irq, |
69 | .mask = kev7a400_mask_cpld_irq, | 69 | .irq_mask = kev7a400_mask_cpld_irq, |
70 | .unmask = kev7a400_unmask_cpld_irq, | 70 | .irq_unmask = kev7a400_unmask_cpld_irq, |
71 | }; | 71 | }; |
72 | 72 | ||
73 | 73 | ||