mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
media: stm32-dcmi: fix irq = 0 case
[ Upstream commitdbb9fcc8c2] Manage the irq = 0 case, where we shall return an error. Fixes:b5b5a27bee("media: stm32-dcmi: return appropriate error codes during probe") Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Reported-by: Pavel Machek <pavel@ucw.cz> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7f8b236007
commit
573370113b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user