summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@st.com>2020-01-21 11:22:49 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-03-12 17:27:46 +0100
commita5e72cfa6a75361da69bfb9177ddf7ef7303c1e3 (patch)
tree6a79b4db5098292c95fc20c17fdcb1ad0e1926ec /drivers/media
parent40ed9629935746bb3da1c3017e0f535fa93b610e (diff)
media: platform: stm32: don't print an error on probe deferral
Change stm32-cec driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Philippe Cornu <philippe.cornu@st.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/stm32/stm32-cec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/stm32/stm32-cec.c b/drivers/media/platform/stm32/stm32-cec.c
index 86f19af5b917..ea4b1ebfca99 100644
--- a/drivers/media/platform/stm32/stm32-cec.c
+++ b/drivers/media/platform/stm32/stm32-cec.c
@@ -291,7 +291,9 @@ static int stm32_cec_probe(struct platform_device *pdev)
cec->clk_cec = devm_clk_get(&pdev->dev, "cec");
if (IS_ERR(cec->clk_cec)) {
- dev_err(&pdev->dev, "Cannot get cec clock\n");
+ if (PTR_ERR(cec->clk_cec) != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "Cannot get cec clock\n");
+
return PTR_ERR(cec->clk_cec);
}