Skip to contentSkip to conversation

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

PATCH New Hugues Fruchet 1 participant 1 message Oct 7, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

From: Etienne Carriere <[email protected]>

Change stm32-dcmi driver to not print an error message when the device probe operation is deferred.

---
 drivers/media/platform/stm32/stm32-dcmi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/media/platform/stm32/stm32-dcmi.c +3 -1
index fd1c41c..720534e 100644
@@ -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);
 	}
 
Signature · 1 line
2.7.4