Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3337c9ff authored by Linus Walleij's avatar Linus Walleij Committed by Jonathan Cameron
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent e693e15e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;