Merge branch 'i2c/for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
[linux-2.6-microblaze.git] / drivers / iio / industrialio-trigger.c
index ce66699..e5b5383 100644 (file)
@@ -254,8 +254,11 @@ static int iio_trigger_attach_poll_func(struct iio_trigger *trig,
 
        /* Get irq number */
        pf->irq = iio_trigger_get_irq(trig);
-       if (pf->irq < 0)
+       if (pf->irq < 0) {
+               pr_err("Could not find an available irq for trigger %s, CONFIG_IIO_CONSUMERS_PER_TRIGGER=%d limit might be exceeded\n",
+                       trig->name, CONFIG_IIO_CONSUMERS_PER_TRIGGER);
                goto out_put_module;
+       }
 
        /* Request irq */
        ret = request_threaded_irq(pf->irq, pf->h, pf->thread,