of_gpio: return error if no device found
of_get_named_gpio_flags used to return 'ret' when no device
is found, but 'ret' is zero here. Return an error instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 55fb660 commit 80bfa0b7cbbe9d749bb8df6d432830c9c928f822
@Sascha Hauer Sascha Hauer authored on 8 Apr 2014
Showing 1 changed file
View
drivers/of/of_gpio.c