From: Linus Walleij Date: Thu, 30 Apr 2015 13:15:46 +0000 (+0200) Subject: iio: st_sensors: print error when failing to get IRQ X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3337c9ff17948e1879fb06ea722baa9519533e0f;p=openwrt%2Fstaging%2Fblogic.git iio: st_sensors: print error when failing to get IRQ Print a proper error message if we're missing the trigger IRQ. Signed-off-by: Linus Walleij Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/common/st_sensors/st_sensors_trigger.c b/drivers/iio/common/st_sensors/st_sensors_trigger.c index 8d8ca6f1e16a..3e907040c2c7 100644 --- a/drivers/iio/common/st_sensors/st_sensors_trigger.c +++ b/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;