iio:inkern: fix overwritten -EPROBE_DEFER in of_iio_channel_get_by_name
authorJohannes Pointner <johannes.pointner@gmail.com>
Mon, 25 Aug 2014 08:04:00 +0000 (09:04 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 25 Aug 2014 15:55:28 +0000 (16:55 +0100)
commit872687f626e033b4ddfaec1e410057cfc6636d77
treeac4b09204496fbd2c4c1f7844a8e7e60faabe654
parenteb29835fb3ae9f7a8c8a4ae92e192052c3473557
iio:inkern: fix overwritten -EPROBE_DEFER in of_iio_channel_get_by_name

Fixes: a2c12493ed7e ('iio: of_iio_channel_get_by_name() returns non-null pointers for error legs')

which improperly assumes that of_iio_channel_get_by_name must always
return NULL and thus now hides -EPROBE_DEFER.

Signed-off-by: Johannes Pointner <johannes.pointner@br-automation.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Stable@vger.kernel.org
drivers/iio/inkern.c