iio: adc: max1027: Stop requesting a threaded IRQ
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 21 Sep 2021 11:54:05 +0000 (13:54 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Oct 2021 07:27:33 +0000 (08:27 +0100)
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>
drivers/iio/adc/max1027.c

index 009203d..dbfff2e 100644 (file)
@@ -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;