OSDN Git Service

media: stm32-dcmi: don't print an error on probe deferral
authorEtienne Carriere <etienne.carriere@st.com>
Wed, 7 Oct 2020 16:02:10 +0000 (18:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:15 +0000 (10:31 +0100)
Change stm32-dcmi driver to not print an error message when the
device probe operation is deferred.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Acked-by: Hugues Fruchet <hugues.fruchet@st.com>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/stm32/stm32-dcmi.c

index fd1c41c..720534e 100644 (file)
@@ -1851,7 +1851,9 @@ static int dcmi_probe(struct platform_device *pdev)
 
        dcmi->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL);
        if (IS_ERR(dcmi->rstc)) {
-               dev_err(&pdev->dev, "Could not get reset control\n");
+               if (PTR_ERR(dcmi->rstc) != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "Could not get reset control\n");
+
                return PTR_ERR(dcmi->rstc);
        }