diff options
Diffstat (limited to 'kernel/drivers/iio/common/st_sensors/st_sensors_trigger.c')
-rw-r--r-- | kernel/drivers/iio/common/st_sensors/st_sensors_trigger.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/drivers/iio/common/st_sensors/st_sensors_trigger.c b/kernel/drivers/iio/common/st_sensors/st_sensors_trigger.c index 8d8ca6f1e..3e907040c 100644 --- a/kernel/drivers/iio/common/st_sensors/st_sensors_trigger.c +++ b/kernel/drivers/iio/common/st_sensors/st_sensors_trigger.c @@ -37,8 +37,10 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev, IRQF_TRIGGER_RISING, sdata->trig->name, sdata->trig); - if (err) + if (err) { + dev_err(&indio_dev->dev, "failed to request trigger IRQ.\n"); goto request_irq_error; + } iio_trigger_set_drvdata(sdata->trig, indio_dev); sdata->trig->ops = trigger_ops; |