Skip to content

Commit 94dee17

Browse files
committed
[MIPS] Eleminate interrupt migration helper use.
> #define hw_interrupt_type irq_chip > typedef struct irq_chip hw_irq_controller; > #define no_irq_type no_irq_chip > typedef struct irq_desc irq_desc_t; Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent e1e80b4 commit 94dee17

39 files changed

Lines changed: 95 additions & 95 deletions

File tree

‎arch/mips/au1000/common/irq.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void restore_local_and_enable(int controller, unsigned long mask)
251251
}
252252

253253

254-
static struct hw_interrupt_type rise_edge_irq_type = {
254+
static struct irq_chip rise_edge_irq_type = {
255255
.typename = "Au1000 Rise Edge",
256256
.startup = startup_irq,
257257
.shutdown = shutdown_irq,
@@ -261,7 +261,7 @@ static struct hw_interrupt_type rise_edge_irq_type = {
261261
.end = end_irq,
262262
};
263263

264-
static struct hw_interrupt_type fall_edge_irq_type = {
264+
static struct irq_chip fall_edge_irq_type = {
265265
.typename = "Au1000 Fall Edge",
266266
.startup = startup_irq,
267267
.shutdown = shutdown_irq,
@@ -271,7 +271,7 @@ static struct hw_interrupt_type fall_edge_irq_type = {
271271
.end = end_irq,
272272
};
273273

274-
static struct hw_interrupt_type either_edge_irq_type = {
274+
static struct irq_chip either_edge_irq_type = {
275275
.typename = "Au1000 Rise or Fall Edge",
276276
.startup = startup_irq,
277277
.shutdown = shutdown_irq,
@@ -281,7 +281,7 @@ static struct hw_interrupt_type either_edge_irq_type = {
281281
.end = end_irq,
282282
};
283283

284-
static struct hw_interrupt_type level_irq_type = {
284+
static struct irq_chip level_irq_type = {
285285
.typename = "Au1000 Level",
286286
.startup = startup_irq,
287287
.shutdown = shutdown_irq,

‎arch/mips/au1000/pb1200/irqmap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void pb1200_end_irq(unsigned int irq_nr)
148148
}
149149
}
150150

151-
static struct hw_interrupt_type external_irq_type =
151+
static struct irq_chip external_irq_type =
152152
{
153153
#ifdef CONFIG_MIPS_PB1200
154154
"Pb1200 Ext",

‎arch/mips/ddb5xxx/ddb5477/irq_5477.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ vrc5477_irq_end(unsigned int irq)
8989
ll_vrc5477_irq_enable( irq - vrc5477_irq_base);
9090
}
9191

92-
hw_irq_controller vrc5477_irq_controller = {
92+
struct irq_chip vrc5477_irq_controller = {
9393
.typename = "vrc5477_irq",
9494
.startup = vrc5477_irq_startup,
9595
.shutdown = vrc5477_irq_shutdown,

‎arch/mips/dec/ioasic-irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static inline void end_ioasic_irq(unsigned int irq)
9393
enable_ioasic_irq(irq);
9494
}
9595

96-
static struct hw_interrupt_type ioasic_irq_type = {
96+
static struct irq_chip ioasic_irq_type = {
9797
.typename = "IO-ASIC",
9898
.startup = startup_ioasic_irq,
9999
.shutdown = shutdown_ioasic_irq,
@@ -121,7 +121,7 @@ static inline void end_ioasic_dma_irq(unsigned int irq)
121121
end_ioasic_irq(irq);
122122
}
123123

124-
static struct hw_interrupt_type ioasic_dma_irq_type = {
124+
static struct irq_chip ioasic_dma_irq_type = {
125125
.typename = "IO-ASIC-DMA",
126126
.startup = startup_ioasic_dma_irq,
127127
.shutdown = shutdown_ioasic_dma_irq,

‎arch/mips/dec/kn02-irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void end_kn02_irq(unsigned int irq)
9494
enable_kn02_irq(irq);
9595
}
9696

97-
static struct hw_interrupt_type kn02_irq_type = {
97+
static struct irq_chip kn02_irq_type = {
9898
.typename = "KN02-CSR",
9999
.startup = startup_kn02_irq,
100100
.shutdown = shutdown_kn02_irq,

‎arch/mips/emma2rh/common/irq_emma2rh.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static void emma2rh_irq_end(unsigned int irq)
7878
ll_emma2rh_irq_enable(irq - emma2rh_irq_base);
7979
}
8080

81-
hw_irq_controller emma2rh_irq_controller = {
81+
struct irq_chip emma2rh_irq_controller = {
8282
.typename = "emma2rh_irq",
8383
.startup = emma2rh_irq_startup,
8484
.shutdown = emma2rh_irq_shutdown,

‎arch/mips/emma2rh/markeins/irq_markeins.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void emma2rh_sw_irq_end(unsigned int irq)
6767
ll_emma2rh_sw_irq_enable(irq - emma2rh_sw_irq_base);
6868
}
6969

70-
hw_irq_controller emma2rh_sw_irq_controller = {
70+
struct irq_chip emma2rh_sw_irq_controller = {
7171
.typename = "emma2rh_sw_irq",
7272
.startup = emma2rh_sw_irq_startup,
7373
.shutdown = emma2rh_sw_irq_shutdown,
@@ -147,7 +147,7 @@ static void emma2rh_gpio_irq_end(unsigned int irq)
147147
ll_emma2rh_gpio_irq_enable(irq - emma2rh_gpio_irq_base);
148148
}
149149

150-
hw_irq_controller emma2rh_gpio_irq_controller = {
150+
struct irq_chip emma2rh_gpio_irq_controller = {
151151
.typename = "emma2rh_gpio_irq",
152152
.startup = emma2rh_gpio_irq_startup,
153153
.shutdown = emma2rh_gpio_irq_shutdown,

‎arch/mips/gt64120/ev64120/irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void end_ev64120_irq(unsigned int irq)
104104
enable_ev64120_irq(irq);
105105
}
106106

107-
static struct hw_interrupt_type ev64120_irq_type = {
107+
static struct irq_chip ev64120_irq_type = {
108108
.typename = "EV64120",
109109
.startup = startup_ev64120_irq,
110110
.shutdown = shutdown_ev64120_irq,
@@ -138,7 +138,7 @@ void __init arch_init_irq(void)
138138
/* Let's initialize our IRQ descriptors */
139139
for (i = 0; i < NR_IRQS; i++) {
140140
irq_desc[i].status = 0;
141-
irq_desc[i].chip = &no_irq_type;
141+
irq_desc[i].chip = &no_irq_chip;
142142
irq_desc[i].action = NULL;
143143
irq_desc[i].depth = 0;
144144
spin_lock_init(&irq_desc[i].lock);

‎arch/mips/ite-boards/generic/irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void end_ite_irq(unsigned int irq)
133133
enable_it8172_irq(irq);
134134
}
135135

136-
static struct hw_interrupt_type it8172_irq_type = {
136+
static struct irq_chip it8172_irq_type = {
137137
.typename = "ITE8172",
138138
.startup = startup_ite_irq,
139139
.shutdown = shutdown_ite_irq,
@@ -153,7 +153,7 @@ static void ack_none(unsigned int irq) { }
153153
#define shutdown_none disable_none
154154
#define end_none enable_none
155155

156-
static struct hw_interrupt_type cp0_irq_type = {
156+
static struct irq_chip cp0_irq_type = {
157157
.typename = "CP0 Count",
158158
.startup = startup_none,
159159
.shutdown = shutdown_none,

‎arch/mips/jazz/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void end_r4030_irq(unsigned int irq)
5555
enable_r4030_irq(irq);
5656
}
5757

58-
static struct hw_interrupt_type r4030_irq_type = {
58+
static struct irq_chip r4030_irq_type = {
5959
.typename = "R4030",
6060
.startup = startup_r4030_irq,
6161
.shutdown = shutdown_r4030_irq,

0 commit comments

Comments
 (0)