diff options
author | Etienne Carriere <etienne.carriere@st.com> | 2020-10-07 18:02:10 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-16 10:31:15 +0100 |
commit | b9b327623b45f7e57245638d19c04392b457cab9 (patch) | |
tree | f8854279bec4a27617c25ef0886f286b281ac2f5 /drivers/media/platform/stm32/stm32-dcmi.c | |
parent | 32ea5e057aad9b90504836d444355d3cd86da230 (diff) | |
download | linux-stable-b9b327623b45f7e57245638d19c04392b457cab9.tar.gz linux-stable-b9b327623b45f7e57245638d19c04392b457cab9.tar.bz2 linux-stable-b9b327623b45f7e57245638d19c04392b457cab9.zip |
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>
Diffstat (limited to 'drivers/media/platform/stm32/stm32-dcmi.c')
-rw-r--r-- | drivers/media/platform/stm32/stm32-dcmi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index fd1c41cba52f..720534e1aee5 100644 --- a/drivers/media/platform/stm32/stm32-dcmi.c +++ b/drivers/media/platform/stm32/stm32-dcmi.c @@ -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); } |