diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-07-25 08:50:55 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2023-08-08 15:36:54 +0200 |
commit | f5d5bc5fda5cfc127d258166e5d6d91cf17efd48 (patch) | |
tree | c0963d2b88d58f6697cc90edccf9ae249fa64ab2 | |
parent | virtio: Remove PM #ifdef guards to fix i2c driver (diff) | |
download | linux-f5d5bc5fda5cfc127d258166e5d6d91cf17efd48.tar.xz linux-f5d5bc5fda5cfc127d258166e5d6d91cf17efd48.zip |
i2c: imx: Clean up a call to request_irq()
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>
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 65128a73e8a3..c0cac5bcfdd1 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -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; |