提交 83233749 编写于 作者: T Todd Poynor 提交者: Kevin Hilman

gpio/omap: check return value from irq_alloc_generic_chip

Ensure return value of irq_alloc_generic_chip() is checked before continuing
on to use it.
Signed-off-by: NTodd Poynor <toddpoynor@google.com>
Signed-off-by: NKevin Hilman <khilman@ti.com>
上级 ece9528e
......@@ -1090,6 +1090,11 @@ omap_mpuio_alloc_gc(struct gpio_bank *bank, unsigned int irq_start,
gc = irq_alloc_generic_chip("MPUIO", 1, irq_start, bank->base,
handle_simple_irq);
if (!gc) {
dev_err(bank->dev, "Memory alloc failed for gc\n");
return;
}
ct = gc->chip_types;
/* NOTE: No ack required, reading IRQ status clears it. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册