aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/stm32
diff options
context:
space:
mode:
authorFabien Dessenne <fabien.dessenne@st.com>2019-05-31 05:18:15 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-05 15:28:32 -0400
commitdbb9fcc8c2d8d4ea1104f51d4947a8a8199a2cb5 (patch)
treeaffcdcc067835cf147f6cacd5a3b3fcf3818167b /drivers/media/platform/stm32
parentmedia: cxusb: Revert "media: cxusb: add raw mode support for, Medion MD95700" (diff)
downloadlinux-dev-dbb9fcc8c2d8d4ea1104f51d4947a8a8199a2cb5.tar.xz
linux-dev-dbb9fcc8c2d8d4ea1104f51d4947a8a8199a2cb5.zip
media: stm32-dcmi: fix irq = 0 case
Manage the irq = 0 case, where we shall return an error. Fixes: b5b5a27bee58 ("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>
Diffstat (limited to 'drivers/media/platform/stm32')
-rw-r--r--drivers/media/platform/stm32/stm32-dcmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c
index b9dad0accd1b..d855e9c09c08 100644
--- a/drivers/media/platform/stm32/stm32-dcmi.c
+++ b/drivers/media/platform/stm32/stm32-dcmi.c
@@ -1702,7 +1702,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);