Commit 57337011 authored by Fabien Dessenne's avatar Fabien Dessenne Committed by Greg Kroah-Hartman

media: stm32-dcmi: fix irq = 0 case

[ Upstream commit dbb9fcc8 ]

Manage the irq = 0 case, where we shall return an error.

Fixes: b5b5a27b ("media: stm32-dcmi: return appropriate error codes during probe")
Signed-off-by: default avatarFabien Dessenne <fabien.dessenne@st.com>
Reported-by: default avatarPavel Machek <pavel@ucw.cz>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7f8b2360
......@@ -1681,7 +1681,7 @@ static int dcmi_probe(struct platform_device *pdev)
if (irq <= 0) {
if (irq != -EPROBE_DEFER)
dev_err(&pdev->dev, "Could not get irq\n");
return irq;
return irq ? irq : -ENXIO;
}
dcmi->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment