Re: [PATCH] pinctrl: st: Add remove function and remove gpio_chip on failure

From: Linus Walleij
Date: Thu Sep 04 2014 - 12:53:37 EST

On Sat, Aug 30, 2014 at 4:45 PM, Pramod Gurav
<pramod.gurav@xxxxxxxxxxxxxxx> wrote:

> This patch adds a remove function to platform_driver to unload
> the driver in a cleaner way. This also 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>

Srinivas/Patrice: can you have a look at this?

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
Please read the FAQ at