]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: return any error code from range creation
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Nov 2012 13:56:25 +0000 (14:56 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 21 Nov 2012 07:55:11 +0000 (08:55 +0100)
commit622590763ac7b271f756a8bc69e63fb68b9c306e
tree3a5395021e8468b50e973a3978b497241b94e7de
parent32f8396303e7f6809a5170c165c59426e58d31bf
gpiolib: return any error code from range creation

If we try to create a range for a certain GPIO chip and the
target pin controller is not yet available it may return
a probe deferral error code, so handle this all the way
our by checking the error code.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c