summaryrefslogtreecommitdiff
path: root/drivers/media/platform/coda/imx-vdoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/coda/imx-vdoa.c')
-rw-r--r--drivers/media/platform/coda/imx-vdoa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/imx-vdoa.c b/drivers/media/platform/coda/imx-vdoa.c
index df9b71621420..8eb3e0c05473 100644
--- a/drivers/media/platform/coda/imx-vdoa.c
+++ b/drivers/media/platform/coda/imx-vdoa.c
@@ -314,6 +314,8 @@ static int vdoa_probe(struct platform_device *pdev)
return PTR_ERR(vdoa->regs);
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
+ if (!res)
+ return -EINVAL;
vdoa->irq = devm_request_threaded_irq(&pdev->dev, res->start, NULL,
vdoa_irq_handler, IRQF_ONESHOT,
"vdoa", vdoa);