Re: [PATCH] pinctrl: spear: Make get_gpio_pingroup return NULL whenno gpio_pingroup found

From: Linus Walleij
Date: Thu Nov 15 2012 - 06:32:13 EST


On Tue, Nov 13, 2012 at 1:20 PM, Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> Currently get_gpio_pingroup() may return NULL or ERR_PTR(-EINVAL) when
> no gpio_pingroup found. The caller in gpio_request_endisable() only
> checks if the return value is NULL. Return ERR_PTR(-EINVAL) for
> get_gpio_pingroup() causes problem and seems not necessary.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Applied with Viresh's 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/