gpiolib: fix of_gpio_hog error handling
Currently the error handling of gpio_get_num() checks the return value
of the previous of_property_read_u32_index() which has it's own error
check. Fix it by using the correct return value variable.

Fixes: 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2c76867 commit 94d60ed19b966c1ff7644273aeb31bd89013df4f
@Marco Felsch Marco Felsch authored on 18 Oct 2018
Sascha Hauer committed on 19 Oct 2018
Showing 1 changed file
View
drivers/gpio/gpiolib.c