Re: [PATCH v2] pinctrl: st: remove gpiochip in failure cases

From: Linus Walleij
Date: Tue Sep 23 2014 - 10:54:09 EST


On Tue, Sep 9, 2014 at 9:51 AM, Pramod Gurav
<pramod.gurav@xxxxxxxxxxxxxxx> wrote:

> This patch releases gpiochip related resources by calling
> gpiochip_remove when gpiochip_irqchip_add fails.
>
> CC: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxx>
> CC: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
> CC: Maxime Coquelin <maxime.coquelin@xxxxxx>
> CC: Patrice Chotard <patrice.chotard@xxxxxx>
> CC: Linus Walleij <linus.walleij@xxxxxxxxxx>
> CC: Bjorn Andersson <bjorn.andersson@xxxxxxxxxxxxxx>
> Signed-off-by: Pramod Gurav <pramod.gurav@xxxxxxxxxxxxxxx>
> ---
> Changes since v1:
> Dropped adding remove function as it will never be tested as
> the driver is bool.

Patch applied with Srinivas ACK.

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/