diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:19:01 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:18 -0500 |
commit | 680244df886face4d29d3f75d964c8e45e0e8bda (patch) | |
tree | 73eb194583c7bf853018b164df9ca5c89bf9aef8 /arch/arm/common | |
parent | 8cdd4572ead14cb104aa6c3d8737ad2d77e4a20a (diff) |
ARM: LoCoMo: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/locomo.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index 9dff07c80ddb..a026a6bf4892 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -144,7 +144,7 @@ static void locomo_handler(unsigned int irq, struct irq_desc *desc) | |||
144 | int req, i; | 144 | int req, i; |
145 | 145 | ||
146 | /* Acknowledge the parent IRQ */ | 146 | /* Acknowledge the parent IRQ */ |
147 | desc->chip->ack(irq); | 147 | desc->irq_data.chip->irq_ack(&desc->irq_data); |
148 | 148 | ||
149 | /* check why this interrupt was generated */ | 149 | /* check why this interrupt was generated */ |
150 | req = locomo_readl(lchip->base + LOCOMO_ICR) & 0x0f00; | 150 | req = locomo_readl(lchip->base + LOCOMO_ICR) & 0x0f00; |
@@ -161,33 +161,33 @@ static void locomo_handler(unsigned int irq, struct irq_desc *desc) | |||
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 | ||
164 | static void locomo_ack_irq(unsigned int irq) | 164 | static void locomo_ack_irq(struct irq_data *d) |
165 | { | 165 | { |
166 | } | 166 | } |
167 | 167 | ||
168 | static void locomo_mask_irq(unsigned int irq) | 168 | static void locomo_mask_irq(struct irq_data *d) |
169 | { | 169 | { |
170 | struct locomo *lchip = get_irq_chip_data(irq); | 170 | struct locomo *lchip = irq_data_get_irq_chip_data(d); |
171 | unsigned int r; | 171 | unsigned int r; |
172 | r = locomo_readl(lchip->base + LOCOMO_ICR); | 172 | r = locomo_readl(lchip->base + LOCOMO_ICR); |
173 | r &= ~(0x0010 << (irq - lchip->irq_base)); | 173 | r &= ~(0x0010 << (d->irq - lchip->irq_base)); |
174 | locomo_writel(r, lchip->base + LOCOMO_ICR); | 174 | locomo_writel(r, lchip->base + LOCOMO_ICR); |
175 | } | 175 | } |
176 | 176 | ||
177 | static void locomo_unmask_irq(unsigned int irq) | 177 | static void locomo_unmask_irq(struct irq_data *d) |
178 | { | 178 | { |
179 | struct locomo *lchip = get_irq_chip_data(irq); | 179 | struct locomo *lchip = irq_data_get_irq_chip_data(d); |
180 | unsigned int r; | 180 | unsigned int r; |
181 | r = locomo_readl(lchip->base + LOCOMO_ICR); | 181 | r = locomo_readl(lchip->base + LOCOMO_ICR); |
182 | r |= (0x0010 << (irq - lchip->irq_base)); | 182 | r |= (0x0010 << (d->irq - lchip->irq_base)); |
183 | locomo_writel(r, lchip->base + LOCOMO_ICR); | 183 | locomo_writel(r, lchip->base + LOCOMO_ICR); |
184 | } | 184 | } |
185 | 185 | ||
186 | static struct irq_chip locomo_chip = { | 186 | static struct irq_chip locomo_chip = { |
187 | .name = "LOCOMO", | 187 | .name = "LOCOMO", |
188 | .ack = locomo_ack_irq, | 188 | .irq_ack = locomo_ack_irq, |
189 | .mask = locomo_mask_irq, | 189 | .irq_mask = locomo_mask_irq, |
190 | .unmask = locomo_unmask_irq, | 190 | .irq_unmask = locomo_unmask_irq, |
191 | }; | 191 | }; |
192 | 192 | ||
193 | static void locomo_setup_irq(struct locomo *lchip) | 193 | static void locomo_setup_irq(struct locomo *lchip) |