Re: [PATCH 2/2] gpio: mxs: need to check return value of irq_alloc_generic_chip

From: Linus Walleij
Date: Tue Sep 08 2015 - 04:34:59 EST


On Sun, Aug 23, 2015 at 3:11 PM, Peng Fan <van.freenix@xxxxxxxxx> wrote:

> Need to check return value of irq_alloc_generic_chip, because
> it may return NULL.
> 1. Change mxs_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: Peng Fan <van.freenix@xxxxxxxxx>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Cc: Alexandre Courbot <gnurou@xxxxxxxxx>

Rebased and applied for fixes.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/