@@ -191,15 +191,14 @@ static int __init vt8500_irq_init(struct device_node *node,
191191 struct device_node * parent )
192192{
193193 int irq , i ;
194- struct device_node * np = node ;
195194
196195 if (active_cnt == VT8500_INTC_MAX ) {
197196 pr_err ("%s: Interrupt controllers > VT8500_INTC_MAX\n" ,
198197 __func__ );
199198 goto out ;
200199 }
201200
202- intc [active_cnt ].base = of_iomap (np , 0 );
201+ intc [active_cnt ].base = of_iomap (node , 0 );
203202 intc [active_cnt ].domain = irq_domain_add_linear (node , 64 ,
204203 & vt8500_irq_domain_ops , & intc [active_cnt ]);
205204
@@ -222,16 +221,16 @@ static int __init vt8500_irq_init(struct device_node *node,
222221 active_cnt ++ ;
223222
224223 /* check if this is a slaved controller */
225- if (of_irq_count (np ) != 0 ) {
224+ if (of_irq_count (node ) != 0 ) {
226225 /* check that we have the correct number of interrupts */
227- if (of_irq_count (np ) != 8 ) {
226+ if (of_irq_count (node ) != 8 ) {
228227 pr_err ("%s: Incorrect IRQ map for slaved controller\n" ,
229228 __func__ );
230229 return - EINVAL ;
231230 }
232231
233232 for (i = 0 ; i < 8 ; i ++ ) {
234- irq = irq_of_parse_and_map (np , i );
233+ irq = irq_of_parse_and_map (node , i );
235234 enable_irq (irq );
236235 }
237236
0 commit comments