Re: [PATCH 2/2] gpio: Don't override the error code in probe error handling

From: Linus Walleij
Date: Mon May 20 2013 - 14:28:16 EST


On Sun, May 19, 2013 at 8:00 AM, Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> Otherwise, we return 0 in probe error paths when gpiochip_remove() returns 0.
> Also show error message if gpiochip_remove() fails.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
> Cc: Tomoya MORINAGA <tomoya.rohm@xxxxxxxxx>
> Cc: Denis Turischev <denis@xxxxxxxxxxxxxx>
> Cc: Lars Poeschel <poeschel@xxxxxxxxxxx>

Good spot Axel!

Patch applied for rc-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/