gpio: gpiolib: Print error number if gpio hog failed
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 11 Mar 2016 13:43:21 +0000 (19:13 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:50:49 +0000 (14:50 +0200)
commitc31a571d4360a7765613615709627e83059ce946
tree57450e218e81f851ca0ebc818327ca6bacc29fd0
parentd1279d94b4e47c3684f936ed6b6c89d3dd2cd5b9
gpio: gpiolib: Print error number if gpio hog failed

Print the error number of GPIO hog failed during its configurations.
This helps in identifying the failure without instrumenting the code.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c