Skip to content
Commit 9e26b0b1 authored by Peng Fan's avatar Peng Fan Committed by Linus Walleij
Browse files

gpio: mxc: need to check return value of irq_alloc_generic_chip



Need to check return value of irq_alloc_generic_chip, because
it may return NULL.
1. Change mxc_gpio_init_gc return type from void to int.
2. Add a new lable out_irqdomain_remove to remove the irq domain
   when mxc_gpio_init_gc fail.

Signed-off-by: default avatarPeng Fan <van.freenix@gmail.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
[Manually rebased]
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6ff33f39
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment