@@ -191,15 +191,14 @@ static int __init vt8500_irq_init(struct device_node *node,
191
191
struct device_node * parent )
192
192
{
193
193
int irq , i ;
194
- struct device_node * np = node ;
195
194
196
195
if (active_cnt == VT8500_INTC_MAX ) {
197
196
pr_err ("%s: Interrupt controllers > VT8500_INTC_MAX\n" ,
198
197
__func__ );
199
198
goto out ;
200
199
}
201
200
202
- intc [active_cnt ].base = of_iomap (np , 0 );
201
+ intc [active_cnt ].base = of_iomap (node , 0 );
203
202
intc [active_cnt ].domain = irq_domain_add_linear (node , 64 ,
204
203
& vt8500_irq_domain_ops , & intc [active_cnt ]);
205
204
@@ -222,16 +221,16 @@ static int __init vt8500_irq_init(struct device_node *node,
222
221
active_cnt ++ ;
223
222
224
223
/* check if this is a slaved controller */
225
- if (of_irq_count (np ) != 0 ) {
224
+ if (of_irq_count (node ) != 0 ) {
226
225
/* check that we have the correct number of interrupts */
227
- if (of_irq_count (np ) != 8 ) {
226
+ if (of_irq_count (node ) != 8 ) {
228
227
pr_err ("%s: Incorrect IRQ map for slaved controller\n" ,
229
228
__func__ );
230
229
return - EINVAL ;
231
230
}
232
231
233
232
for (i = 0 ; i < 8 ; i ++ ) {
234
- irq = irq_of_parse_and_map (np , i );
233
+ irq = irq_of_parse_and_map (node , i );
235
234
enable_irq (irq );
236
235
}
237
236
0 commit comments