[PATCH 6/6] drm/bridge: dpu-core: Don't print error on -EPROBE_DEFER
Alexander Stein
alexander.stein at ew.tq-group.com
Mon Dec 18 10:57:18 UTC 2023
-517 errors are just annoying. dev_err_probe can't be used here either
as this would hide the error message already set in us->init.
Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
---
drivers/gpu/drm/imx/dpu/dpu-core.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/imx/dpu/dpu-core.c b/drivers/gpu/drm/imx/dpu/dpu-core.c
index d6116b3e4ed7..ea2558a14a6c 100644
--- a/drivers/gpu/drm/imx/dpu/dpu-core.c
+++ b/drivers/gpu/drm/imx/dpu/dpu-core.c
@@ -592,9 +592,10 @@ static int dpu_submodules_init(struct dpu_soc *dpu, unsigned long dpu_base)
ret = us->init(dpu, j, us->ids[j], us->types[j],
pec_ofs, dpu_base + us->ofss[j]);
if (ret) {
- dev_err(dpu->dev,
- "failed to initialize %s%d: %d\n",
- us->name, us->ids[j], ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(dpu->dev,
+ "failed to initialize %s%d: %d\n",
+ us->name, us->ids[j], ret);
return ret;
}
}
--
2.34.1
More information about the dri-devel
mailing list