]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: devres: fix devm_gpiod_get_index()
authorAlexandre Courbot <acourbot@nvidia.com>
Sun, 20 Oct 2013 22:14:57 +0000 (15:14 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Oct 2013 08:09:22 +0000 (10:09 +0200)
commit2db0bbdd3657ec78314b2b5d128d110225bb3670
tree30b68b1c14036ef0d7f6c7cbc84c30e35f652887
parent082ef759c139ceb7bbbe036ba91979d11fd36bb7
gpiolib: devres: fix devm_gpiod_get_index()

Fix the return value if devm_gpiod_get_index(). It was returning 0 while
it should return the obtained GPIO descriptor.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/devres.c