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: 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>
This commit is contained in:
parent
32ea5e057a
commit
b9b327623b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue