gpio: generic: improve error handling in bgpio_map
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 30 Sep 2015 21:50:20 +0000 (23:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Oct 2015 07:13:39 +0000 (09:13 +0200)
commitcf3f2a2c8bae0db72233629c9da9d9f617b3f8af
tree9e538ad4fbdf9f5887a7e669cc369e06a5e006e9
parent2db8aba860c70478f6af18c410a3e513a2d2f541
gpio: generic: improve error handling in bgpio_map

If bgpio_map returns NULL then err should always be set.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c