struct device_node *parent)
{
int irq, i;
- struct device_node *np = node;
if (active_cnt == VT8500_INTC_MAX) {
pr_err("%s: Interrupt controllers > VT8500_INTC_MAX\n",
goto out;
}
- intc[active_cnt].base = of_iomap(np, 0);
+ intc[active_cnt].base = of_iomap(node, 0);
intc[active_cnt].domain = irq_domain_add_linear(node, 64,
&vt8500_irq_domain_ops, &intc[active_cnt]);
active_cnt++;
/* check if this is a slaved controller */
- if (of_irq_count(np) != 0) {
+ if (of_irq_count(node) != 0) {
/* check that we have the correct number of interrupts */
- if (of_irq_count(np) != 8) {
+ if (of_irq_count(node) != 8) {
pr_err("%s: Incorrect IRQ map for slaved controller\n",
__func__);
return -EINVAL;
}
for (i = 0; i < 8; i++) {
- irq = irq_of_parse_and_map(np, i);
+ irq = irq_of_parse_and_map(node, i);
enable_irq(irq);
}