Commit b9b32762 authored by Etienne Carriere's avatar Etienne Carriere Committed by Mauro Carvalho Chehab

media: stm32-dcmi: don't print an error on probe deferral

Change stm32-dcmi driver to not print an error message when the
device probe operation is deferred.
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
Acked-by: default avatarHugues Fruchet <hugues.fruchet@st.com>
Tested-by: default avatarAlexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 32ea5e05
......@@ -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);
}
......
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