|
@@ -178,7 +178,7 @@ static struct iio_channel *of_iio_channel_get_by_name(struct device_node *np,
|
|
|
index = of_property_match_string(np, "io-channel-names",
|
|
|
name);
|
|
|
chan = of_iio_channel_get(np, index);
|
|
|
- if (!IS_ERR(chan))
|
|
|
+ if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER)
|
|
|
break;
|
|
|
else if (name && index >= 0) {
|
|
|
pr_err("ERROR: could not get IIO channel %s:%s(%i)\n",
|