|
@@ -73,8 +73,11 @@ static int iio_hwmon_probe(struct platform_device *pdev)
|
|
|
name = dev->of_node->name;
|
|
|
|
|
|
channels = iio_channel_get_all(dev);
|
|
|
- if (IS_ERR(channels))
|
|
|
+ if (IS_ERR(channels)) {
|
|
|
+ if (PTR_ERR(channels) == -ENODEV)
|
|
|
+ return -EPROBE_DEFER;
|
|
|
return PTR_ERR(channels);
|
|
|
+ }
|
|
|
|
|
|
st = devm_kzalloc(dev, sizeof(*st), GFP_KERNEL);
|
|
|
if (st == NULL) {
|