diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-09-21 13:54:05 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-10-19 08:27:33 +0100 |
commit | d7aeec136929ceed6b41eca8ae003fda5f57487f (patch) | |
tree | 86db643423321ae2062083eda79c46f0b00dfdcf | |
parent | a0e831653ef93912c442a6d30dcb29fe94ecf050 (diff) | |
download | linux-stable-d7aeec136929ceed6b41eca8ae003fda5f57487f.tar.gz linux-stable-d7aeec136929ceed6b41eca8ae003fda5f57487f.tar.bz2 linux-stable-d7aeec136929ceed6b41eca8ae003fda5f57487f.zip |
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 <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20210921115408.66711-14-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/adc/max1027.c | 10 |
1 files changed, 4 insertions, 6 deletions
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; |