]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit5fcdb9dc98e76001060bb89e3b1269384f9f5201
tree30b68b1c14036ef0d7f6c7cbc84c30e35f652887
parent45f394391f93596782c6a5ec14f0a5428f60f9b3
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