]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/hwmon/iio_hwmon.c
net/mlx5e: Move mlx5e_rq struct declaration
[karo-tx-linux.git] / drivers / hwmon / iio_hwmon.c
index 89449871bca7fa7ed1f224d83f1d4a4c525809e7..f6a76679c6500c9c21b60b440c8c1539512cd582 100644 (file)
@@ -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) {