Message ID | 20250314152939.2759573-6-serghox@gmail.com |
---|---|
State | New |
Headers | show |
Series | [01/18] media: coda: Add print if irq isn't present | expand |
diff --git a/drivers/media/platform/chips-media/coda/coda-common.c b/drivers/media/platform/chips-media/coda/coda-common.c index 64ba17d8adfb..b240091cdc9d 100644 --- a/drivers/media/platform/chips-media/coda/coda-common.c +++ b/drivers/media/platform/chips-media/coda/coda-common.c @@ -3184,8 +3184,10 @@ static int coda_probe(struct platform_device *pdev) if (irq < 0) return dev_err_probe(&pdev->dev, irq, "Failed to get irq 0 (bit)\n"); - ret = devm_request_irq(&pdev->dev, irq, coda_irq_handler, 0, - CODA_NAME "-video", dev); + ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, + coda_irq_handler, + IRQF_ONESHOT, + CODA_NAME "-video", (void *)(dev)); if (ret < 0) { dev_err(&pdev->dev, "failed to request irq: %d\n", ret); return ret;