i2c: imx: Clean up a call to request_irq()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 25 Jul 2023 06:50:55 +0000 (09:50 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 8 Aug 2023 13:36:54 +0000 (15:36 +0200)
This is passing a NULL thread to request_threaded_irq().  So it's not
really a threaded IRQ at all.  It's more readable to call request_irq()
instead.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/fa375cc0-893a-4e64-8bf6-cc37f9ebecf5@moroto.mountain
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-imx.c

index 65128a7..c0cac5b 100644 (file)
@@ -1506,8 +1506,7 @@ static int i2c_imx_probe(struct platform_device *pdev)
                goto rpm_disable;
 
        /* Request IRQ */
-       ret = request_threaded_irq(irq, i2c_imx_isr, NULL, IRQF_SHARED,
-                                  pdev->name, i2c_imx);
+       ret = request_irq(irq, i2c_imx_isr, IRQF_SHARED, pdev->name, i2c_imx);
        if (ret) {
                dev_err(&pdev->dev, "can't claim irq %d\n", irq);
                goto rpm_disable;