aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-lh7a40x/irq-lpd7a40x.c')
-rw-r--r--arch/arm/mach-lh7a40x/irq-lpd7a40x.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/mach-lh7a40x/irq-lpd7a40x.c b/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
index fd033bb4342f..1bfdcddcb93e 100644
--- a/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
+++ b/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
@@ -20,14 +20,14 @@
20 20
21#include "common.h" 21#include "common.h"
22 22
23static void lh7a40x_ack_cpld_irq (u32 irq) 23static void lh7a40x_ack_cpld_irq(struct irq_data *d)
24{ 24{
25 /* CPLD doesn't have ack capability */ 25 /* CPLD doesn't have ack capability */
26} 26}
27 27
28static void lh7a40x_mask_cpld_irq (u32 irq) 28static void lh7a40x_mask_cpld_irq(struct irq_data *d)
29{ 29{
30 switch (irq) { 30 switch (d->irq) {
31 case IRQ_LPD7A40X_ETH_INT: 31 case IRQ_LPD7A40X_ETH_INT:
32 CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x4; 32 CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x4;
33 break; 33 break;
@@ -37,9 +37,9 @@ static void lh7a40x_mask_cpld_irq (u32 irq)
37 } 37 }
38} 38}
39 39
40static void lh7a40x_unmask_cpld_irq (u32 irq) 40static void lh7a40x_unmask_cpld_irq(struct irq_data *d)
41{ 41{
42 switch (irq) { 42 switch (d->irq) {
43 case IRQ_LPD7A40X_ETH_INT: 43 case IRQ_LPD7A40X_ETH_INT:
44 CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x4; 44 CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x4;
45 break; 45 break;
@@ -50,17 +50,17 @@ static void lh7a40x_unmask_cpld_irq (u32 irq)
50} 50}
51 51
52static struct irq_chip lh7a40x_cpld_chip = { 52static struct irq_chip lh7a40x_cpld_chip = {
53 .name = "CPLD", 53 .name = "CPLD",
54 .ack = lh7a40x_ack_cpld_irq, 54 .irq_ack = lh7a40x_ack_cpld_irq,
55 .mask = lh7a40x_mask_cpld_irq, 55 .irq_mask = lh7a40x_mask_cpld_irq,
56 .unmask = lh7a40x_unmask_cpld_irq, 56 .irq_unmask = lh7a40x_unmask_cpld_irq,
57}; 57};
58 58
59static void lh7a40x_cpld_handler (unsigned int irq, struct irq_desc *desc) 59static void lh7a40x_cpld_handler (unsigned int irq, struct irq_desc *desc)
60{ 60{
61 unsigned int mask = CPLD_INTERRUPTS; 61 unsigned int mask = CPLD_INTERRUPTS;
62 62
63 desc->chip->ack (irq); 63 desc->irq_data.chip->ack (irq);
64 64
65 if ((mask & 0x1) == 0) /* WLAN */ 65 if ((mask & 0x1) == 0) /* WLAN */
66 generic_handle_irq(IRQ_LPD7A40X_ETH_INT); 66 generic_handle_irq(IRQ_LPD7A40X_ETH_INT);
@@ -68,7 +68,7 @@ static void lh7a40x_cpld_handler (unsigned int irq, struct irq_desc *desc)
68 if ((mask & 0x2) == 0) /* Touch */ 68 if ((mask & 0x2) == 0) /* Touch */
69 generic_handle_irq(IRQ_LPD7A400_TS); 69 generic_handle_irq(IRQ_LPD7A400_TS);
70 70
71 desc->chip->unmask (irq); /* Level-triggered need this */ 71 desc->irq_data.chip->unmask (irq); /* Level-triggered need this */
72} 72}
73 73
74 74