diff options
Diffstat (limited to 'arch/arm/mach-ixp23xx/ixdp2351.c')
-rw-r--r-- | arch/arm/mach-ixp23xx/ixdp2351.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index 664e39c2a903..181116aa6591 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c | |||
@@ -48,14 +48,14 @@ | |||
48 | /* | 48 | /* |
49 | * IXDP2351 Interrupt Handling | 49 | * IXDP2351 Interrupt Handling |
50 | */ | 50 | */ |
51 | static void ixdp2351_inta_mask(unsigned int irq) | 51 | static void ixdp2351_inta_mask(struct irq_data *d) |
52 | { | 52 | { |
53 | *IXDP2351_CPLD_INTA_MASK_SET_REG = IXDP2351_INTA_IRQ_MASK(irq); | 53 | *IXDP2351_CPLD_INTA_MASK_SET_REG = IXDP2351_INTA_IRQ_MASK(d->irq); |
54 | } | 54 | } |
55 | 55 | ||
56 | static void ixdp2351_inta_unmask(unsigned int irq) | 56 | static void ixdp2351_inta_unmask(struct irq_data *d) |
57 | { | 57 | { |
58 | *IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq); | 58 | *IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(d->irq); |
59 | } | 59 | } |
60 | 60 | ||
61 | static void ixdp2351_inta_handler(unsigned int irq, struct irq_desc *desc) | 61 | static void ixdp2351_inta_handler(unsigned int irq, struct irq_desc *desc) |
@@ -64,7 +64,7 @@ static void ixdp2351_inta_handler(unsigned int irq, struct irq_desc *desc) | |||
64 | *IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID; | 64 | *IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID; |
65 | int i; | 65 | int i; |
66 | 66 | ||
67 | desc->chip->mask(irq); | 67 | desc->irq_data.chip->irq_mask(&desc->irq_data); |
68 | 68 | ||
69 | for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) { | 69 | for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) { |
70 | if (ex_interrupt & (1 << i)) { | 70 | if (ex_interrupt & (1 << i)) { |
@@ -74,23 +74,23 @@ static void ixdp2351_inta_handler(unsigned int irq, struct irq_desc *desc) | |||
74 | } | 74 | } |
75 | } | 75 | } |
76 | 76 | ||
77 | desc->chip->unmask(irq); | 77 | desc->irq_data.chip->irq_unmask(&desc->irq_data); |
78 | } | 78 | } |
79 | 79 | ||
80 | static struct irq_chip ixdp2351_inta_chip = { | 80 | static struct irq_chip ixdp2351_inta_chip = { |
81 | .ack = ixdp2351_inta_mask, | 81 | .irq_ack = ixdp2351_inta_mask, |
82 | .mask = ixdp2351_inta_mask, | 82 | .irq_mask = ixdp2351_inta_mask, |
83 | .unmask = ixdp2351_inta_unmask | 83 | .irq_unmask = ixdp2351_inta_unmask |
84 | }; | 84 | }; |
85 | 85 | ||
86 | static void ixdp2351_intb_mask(unsigned int irq) | 86 | static void ixdp2351_intb_mask(struct irq_data *d) |
87 | { | 87 | { |
88 | *IXDP2351_CPLD_INTB_MASK_SET_REG = IXDP2351_INTB_IRQ_MASK(irq); | 88 | *IXDP2351_CPLD_INTB_MASK_SET_REG = IXDP2351_INTB_IRQ_MASK(d->irq); |
89 | } | 89 | } |
90 | 90 | ||
91 | static void ixdp2351_intb_unmask(unsigned int irq) | 91 | static void ixdp2351_intb_unmask(struct irq_data *d) |
92 | { | 92 | { |
93 | *IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq); | 93 | *IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(d->irq); |
94 | } | 94 | } |
95 | 95 | ||
96 | static void ixdp2351_intb_handler(unsigned int irq, struct irq_desc *desc) | 96 | static void ixdp2351_intb_handler(unsigned int irq, struct irq_desc *desc) |
@@ -99,7 +99,7 @@ static void ixdp2351_intb_handler(unsigned int irq, struct irq_desc *desc) | |||
99 | *IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID; | 99 | *IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID; |
100 | int i; | 100 | int i; |
101 | 101 | ||
102 | desc->chip->ack(irq); | 102 | desc->irq_data.chip->irq_ack(&desc->irq_data); |
103 | 103 | ||
104 | for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) { | 104 | for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) { |
105 | if (ex_interrupt & (1 << i)) { | 105 | if (ex_interrupt & (1 << i)) { |
@@ -109,13 +109,13 @@ static void ixdp2351_intb_handler(unsigned int irq, struct irq_desc *desc) | |||
109 | } | 109 | } |
110 | } | 110 | } |
111 | 111 | ||
112 | desc->chip->unmask(irq); | 112 | desc->irq_data.chip->irq_unmask(&desc->irq_data); |
113 | } | 113 | } |
114 | 114 | ||
115 | static struct irq_chip ixdp2351_intb_chip = { | 115 | static struct irq_chip ixdp2351_intb_chip = { |
116 | .ack = ixdp2351_intb_mask, | 116 | .irq_ack = ixdp2351_intb_mask, |
117 | .mask = ixdp2351_intb_mask, | 117 | .irq_mask = ixdp2351_intb_mask, |
118 | .unmask = ixdp2351_intb_unmask | 118 | .irq_unmask = ixdp2351_intb_unmask |
119 | }; | 119 | }; |
120 | 120 | ||
121 | void __init ixdp2351_init_irq(void) | 121 | void __init ixdp2351_init_irq(void) |