diff options
Diffstat (limited to 'arch/arm/mach-ixp23xx')
-rw-r--r-- | arch/arm/mach-ixp23xx/core.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-ixp23xx/ixdp2351.c | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/mach-ixp23xx/core.c b/arch/arm/mach-ixp23xx/core.c index a704a1820048..ce6ad635a00c 100644 --- a/arch/arm/mach-ixp23xx/core.c +++ b/arch/arm/mach-ixp23xx/core.c | |||
@@ -224,14 +224,14 @@ static void ixp23xx_irq_edge_unmask(unsigned int irq) | |||
224 | *intr_reg |= (1 << (irq % 32)); | 224 | *intr_reg |= (1 << (irq % 32)); |
225 | } | 225 | } |
226 | 226 | ||
227 | static struct irqchip ixp23xx_irq_level_chip = { | 227 | static struct irq_chip ixp23xx_irq_level_chip = { |
228 | .ack = ixp23xx_irq_mask, | 228 | .ack = ixp23xx_irq_mask, |
229 | .mask = ixp23xx_irq_mask, | 229 | .mask = ixp23xx_irq_mask, |
230 | .unmask = ixp23xx_irq_level_unmask, | 230 | .unmask = ixp23xx_irq_level_unmask, |
231 | .set_type = ixp23xx_irq_set_type | 231 | .set_type = ixp23xx_irq_set_type |
232 | }; | 232 | }; |
233 | 233 | ||
234 | static struct irqchip ixp23xx_irq_edge_chip = { | 234 | static struct irq_chip ixp23xx_irq_edge_chip = { |
235 | .ack = ixp23xx_irq_ack, | 235 | .ack = ixp23xx_irq_ack, |
236 | .mask = ixp23xx_irq_mask, | 236 | .mask = ixp23xx_irq_mask, |
237 | .unmask = ixp23xx_irq_edge_unmask, | 237 | .unmask = ixp23xx_irq_edge_unmask, |
@@ -251,11 +251,11 @@ static void ixp23xx_pci_irq_unmask(unsigned int irq) | |||
251 | /* | 251 | /* |
252 | * TODO: Should this just be done at ASM level? | 252 | * TODO: Should this just be done at ASM level? |
253 | */ | 253 | */ |
254 | static void pci_handler(unsigned int irq, struct irqdesc *desc) | 254 | static void pci_handler(unsigned int irq, struct irq_desc *desc) |
255 | { | 255 | { |
256 | u32 pci_interrupt; | 256 | u32 pci_interrupt; |
257 | unsigned int irqno; | 257 | unsigned int irqno; |
258 | struct irqdesc *int_desc; | 258 | struct irq_desc *int_desc; |
259 | 259 | ||
260 | pci_interrupt = *IXP23XX_PCI_XSCALE_INT_STATUS; | 260 | pci_interrupt = *IXP23XX_PCI_XSCALE_INT_STATUS; |
261 | 261 | ||
@@ -276,7 +276,7 @@ static void pci_handler(unsigned int irq, struct irqdesc *desc) | |||
276 | desc->chip->unmask(irq); | 276 | desc->chip->unmask(irq); |
277 | } | 277 | } |
278 | 278 | ||
279 | static struct irqchip ixp23xx_pci_irq_chip = { | 279 | static struct irq_chip ixp23xx_pci_irq_chip = { |
280 | .ack = ixp23xx_pci_irq_mask, | 280 | .ack = ixp23xx_pci_irq_mask, |
281 | .mask = ixp23xx_pci_irq_mask, | 281 | .mask = ixp23xx_pci_irq_mask, |
282 | .unmask = ixp23xx_pci_irq_unmask | 282 | .unmask = ixp23xx_pci_irq_unmask |
@@ -287,11 +287,11 @@ static void ixp23xx_config_irq(unsigned int irq, enum ixp23xx_irq_type type) | |||
287 | switch (type) { | 287 | switch (type) { |
288 | case IXP23XX_IRQ_LEVEL: | 288 | case IXP23XX_IRQ_LEVEL: |
289 | set_irq_chip(irq, &ixp23xx_irq_level_chip); | 289 | set_irq_chip(irq, &ixp23xx_irq_level_chip); |
290 | set_irq_handler(irq, do_level_IRQ); | 290 | set_irq_handler(irq, handle_level_irq); |
291 | break; | 291 | break; |
292 | case IXP23XX_IRQ_EDGE: | 292 | case IXP23XX_IRQ_EDGE: |
293 | set_irq_chip(irq, &ixp23xx_irq_edge_chip); | 293 | set_irq_chip(irq, &ixp23xx_irq_edge_chip); |
294 | set_irq_handler(irq, do_edge_IRQ); | 294 | set_irq_handler(irq, handle_edge_irq); |
295 | break; | 295 | break; |
296 | } | 296 | } |
297 | set_irq_flags(irq, IRQF_VALID); | 297 | set_irq_flags(irq, IRQF_VALID); |
@@ -322,7 +322,7 @@ void __init ixp23xx_init_irq(void) | |||
322 | 322 | ||
323 | for (irq = IRQ_IXP23XX_INTA; irq <= IRQ_IXP23XX_INTB; irq++) { | 323 | for (irq = IRQ_IXP23XX_INTA; irq <= IRQ_IXP23XX_INTB; irq++) { |
324 | set_irq_chip(irq, &ixp23xx_pci_irq_chip); | 324 | set_irq_chip(irq, &ixp23xx_pci_irq_chip); |
325 | set_irq_handler(irq, do_level_IRQ); | 325 | set_irq_handler(irq, handle_level_irq); |
326 | set_irq_flags(irq, IRQF_VALID); | 326 | set_irq_flags(irq, IRQF_VALID); |
327 | } | 327 | } |
328 | 328 | ||
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index b6ab0e8bb5e8..7a86a2516eaa 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c | |||
@@ -60,7 +60,7 @@ static void ixdp2351_inta_unmask(unsigned int irq) | |||
60 | *IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq); | 60 | *IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq); |
61 | } | 61 | } |
62 | 62 | ||
63 | static void ixdp2351_inta_handler(unsigned int irq, struct irqdesc *desc) | 63 | static void ixdp2351_inta_handler(unsigned int irq, struct irq_desc *desc) |
64 | { | 64 | { |
65 | u16 ex_interrupt = | 65 | u16 ex_interrupt = |
66 | *IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID; | 66 | *IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID; |
@@ -70,7 +70,7 @@ static void ixdp2351_inta_handler(unsigned int irq, struct irqdesc *desc) | |||
70 | 70 | ||
71 | for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) { | 71 | for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) { |
72 | if (ex_interrupt & (1 << i)) { | 72 | if (ex_interrupt & (1 << i)) { |
73 | struct irqdesc *cpld_desc; | 73 | struct irq_desc *cpld_desc; |
74 | int cpld_irq = | 74 | int cpld_irq = |
75 | IXP23XX_MACH_IRQ(IXDP2351_INTA_IRQ_BASE + i); | 75 | IXP23XX_MACH_IRQ(IXDP2351_INTA_IRQ_BASE + i); |
76 | cpld_desc = irq_desc + cpld_irq; | 76 | cpld_desc = irq_desc + cpld_irq; |
@@ -81,7 +81,7 @@ static void ixdp2351_inta_handler(unsigned int irq, struct irqdesc *desc) | |||
81 | desc->chip->unmask(irq); | 81 | desc->chip->unmask(irq); |
82 | } | 82 | } |
83 | 83 | ||
84 | static struct irqchip ixdp2351_inta_chip = { | 84 | static struct irq_chip ixdp2351_inta_chip = { |
85 | .ack = ixdp2351_inta_mask, | 85 | .ack = ixdp2351_inta_mask, |
86 | .mask = ixdp2351_inta_mask, | 86 | .mask = ixdp2351_inta_mask, |
87 | .unmask = ixdp2351_inta_unmask | 87 | .unmask = ixdp2351_inta_unmask |
@@ -97,7 +97,7 @@ static void ixdp2351_intb_unmask(unsigned int irq) | |||
97 | *IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq); | 97 | *IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq); |
98 | } | 98 | } |
99 | 99 | ||
100 | static void ixdp2351_intb_handler(unsigned int irq, struct irqdesc *desc) | 100 | static void ixdp2351_intb_handler(unsigned int irq, struct irq_desc *desc) |
101 | { | 101 | { |
102 | u16 ex_interrupt = | 102 | u16 ex_interrupt = |
103 | *IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID; | 103 | *IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID; |
@@ -107,7 +107,7 @@ static void ixdp2351_intb_handler(unsigned int irq, struct irqdesc *desc) | |||
107 | 107 | ||
108 | for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) { | 108 | for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) { |
109 | if (ex_interrupt & (1 << i)) { | 109 | if (ex_interrupt & (1 << i)) { |
110 | struct irqdesc *cpld_desc; | 110 | struct irq_desc *cpld_desc; |
111 | int cpld_irq = | 111 | int cpld_irq = |
112 | IXP23XX_MACH_IRQ(IXDP2351_INTB_IRQ_BASE + i); | 112 | IXP23XX_MACH_IRQ(IXDP2351_INTB_IRQ_BASE + i); |
113 | cpld_desc = irq_desc + cpld_irq; | 113 | cpld_desc = irq_desc + cpld_irq; |
@@ -118,7 +118,7 @@ static void ixdp2351_intb_handler(unsigned int irq, struct irqdesc *desc) | |||
118 | desc->chip->unmask(irq); | 118 | desc->chip->unmask(irq); |
119 | } | 119 | } |
120 | 120 | ||
121 | static struct irqchip ixdp2351_intb_chip = { | 121 | static struct irq_chip ixdp2351_intb_chip = { |
122 | .ack = ixdp2351_intb_mask, | 122 | .ack = ixdp2351_intb_mask, |
123 | .mask = ixdp2351_intb_mask, | 123 | .mask = ixdp2351_intb_mask, |
124 | .unmask = ixdp2351_intb_unmask | 124 | .unmask = ixdp2351_intb_unmask |
@@ -142,7 +142,7 @@ void ixdp2351_init_irq(void) | |||
142 | irq++) { | 142 | irq++) { |
143 | if (IXDP2351_INTA_IRQ_MASK(irq) & IXDP2351_INTA_IRQ_VALID) { | 143 | if (IXDP2351_INTA_IRQ_MASK(irq) & IXDP2351_INTA_IRQ_VALID) { |
144 | set_irq_flags(irq, IRQF_VALID); | 144 | set_irq_flags(irq, IRQF_VALID); |
145 | set_irq_handler(irq, do_level_IRQ); | 145 | set_irq_handler(irq, handle_level_irq); |
146 | set_irq_chip(irq, &ixdp2351_inta_chip); | 146 | set_irq_chip(irq, &ixdp2351_inta_chip); |
147 | } | 147 | } |
148 | } | 148 | } |
@@ -153,7 +153,7 @@ void ixdp2351_init_irq(void) | |||
153 | irq++) { | 153 | irq++) { |
154 | if (IXDP2351_INTB_IRQ_MASK(irq) & IXDP2351_INTB_IRQ_VALID) { | 154 | if (IXDP2351_INTB_IRQ_MASK(irq) & IXDP2351_INTB_IRQ_VALID) { |
155 | set_irq_flags(irq, IRQF_VALID); | 155 | set_irq_flags(irq, IRQF_VALID); |
156 | set_irq_handler(irq, do_level_IRQ); | 156 | set_irq_handler(irq, handle_level_irq); |
157 | set_irq_chip(irq, &ixdp2351_intb_chip); | 157 | set_irq_chip(irq, &ixdp2351_intb_chip); |
158 | } | 158 | } |
159 | } | 159 | } |