diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-11-23 06:41:32 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-11-30 07:24:47 -0500 |
commit | 10dd5ce28d78e2440e8fa1135d17e33399d75340 (patch) | |
tree | d2e76765a57e7e47a9c424f99c3a22bf99c6da64 /arch/arm/mach-ixp23xx/ixdp2351.c | |
parent | 127e477e0cd8da4d3058709ab2dc7b92dccbcba5 (diff) |
[ARM] Remove compatibility layer for ARM irqs
set_irq_chipdata -> set_irq_chip_data
get_irq_chipdata -> get_irq_chip_data
do_level_IRQ -> handle_level_irq
do_edge_IRQ -> handle_edge_irq
do_simple_IRQ -> handle_simple_irq
irqdesc -> irq_desc
irqchip -> irq_chip
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp23xx/ixdp2351.c')
-rw-r--r-- | arch/arm/mach-ixp23xx/ixdp2351.c | 16 |
1 files changed, 8 insertions, 8 deletions
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 | } |