iio: handle -EPROBE_DEFER in of_iio_channel_get_by_name
From: Heiko Stuebner <heiko@...> Date: Thu, 28 Aug 2014 23:44:59 +0200
Commit-Message
Till now of_iio_channel_get_by_name always tried to find the channel without evaluating the return code from of_iio_channel_get. This might include -EPROBE_DEFER in which case the channel is present but its driver simply not probed yet. Therefore simply return on -EPROBE_DEFER so that the driver requesting the channel can also defer. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
#### similar patch by Johannes Pointner already fixed this #### drivers/iio/inkern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Statistics
- 1 lines added
- 1 lines removed