summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/irqchip/irq-mxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/irqchip/irq-mxs.c')
-rw-r--r--kernel/drivers/irqchip/irq-mxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/irqchip/irq-mxs.c b/kernel/drivers/irqchip/irq-mxs.c
index efe508459..17304705f 100644
--- a/kernel/drivers/irqchip/irq-mxs.c
+++ b/kernel/drivers/irqchip/irq-mxs.c
@@ -183,7 +183,7 @@ static void __iomem * __init icoll_init_iobase(struct device_node *np)
void __iomem *icoll_base;
icoll_base = of_io_request_and_map(np, 0, np->name);
- if (!icoll_base)
+ if (IS_ERR(icoll_base))
panic("%s: unable to map resource", np->full_name);
return icoll_base;
}