lkml.org 
[lkml]   [2021]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 13/16] iio: adc: max1027: Stop requesting a threaded IRQ
    Date
    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>
    ---
    drivers/iio/adc/max1027.c | 10 ++++------
    1 file changed, 4 insertions(+), 6 deletions(-)

    diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c
    index e0175448c899..84217e18ef70 100644
    --- a/drivers/iio/adc/max1027.c
    +++ b/drivers/iio/adc/max1027.c
    @@ -560,12 +560,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;
    --
    2.27.0
    \
     
     \ /
      Last update: 2021-09-21 13:55    [W:4.263 / U:0.120 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site