From: Miquel Raynal Date: Tue, 21 Sep 2021 11:54:05 +0000 (+0200) Subject: iio: adc: max1027: Stop requesting a threaded IRQ X-Git-Tag: v6.6.17~8913^2~23^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7aeec136929ceed6b41eca8ae003fda5f57487f;p=platform%2Fkernel%2Flinux-rpi.git iio: adc: max1027: Stop requesting a threaded IRQ The threaded handler is not populated, this means there is nothing running in process context so let's switch to the regular devm_request_irq() call instead. Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/r/20210921115408.66711-14-miquel.raynal@bootlin.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index 009203d8d8cf..dbfff2ef2e65 100644 --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c @@ -561,12 +561,10 @@ static int max1027_probe(struct spi_device *spi) return ret; } - ret = devm_request_threaded_irq(&spi->dev, spi->irq, - iio_trigger_generic_data_rdy_poll, - NULL, - IRQF_TRIGGER_FALLING, - spi->dev.driver->name, - st->trig); + ret = devm_request_irq(&spi->dev, spi->irq, + iio_trigger_generic_data_rdy_poll, + IRQF_TRIGGER_FALLING, + spi->dev.driver->name, st->trig); if (ret < 0) { dev_err(&indio_dev->dev, "Failed to allocate IRQ.\n"); return ret;