]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/iio/industrialio-core.c
Merge tag 'iio-for-4.5c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio...
[linux-beck.git] / drivers / iio / industrialio-core.c
index a45eb2c53d0fd1c35550098fc221fdf7d850d6fe..fd01f3493fc7792792d015c604903197ba506073 100644 (file)
@@ -665,7 +665,7 @@ int __iio_device_attr_init(struct device_attribute *dev_attr,
                        break;
                case IIO_SEPARATE:
                        if (!chan->indexed) {
-                               WARN_ON("Differential channels must be indexed\n");
+                               WARN(1, "Differential channels must be indexed\n");
                                ret = -EINVAL;
                                goto error_free_full_postfix;
                        }