[PATCH 6/6] drm/bridge: dpu-core: Don't print error on -EPROBE_DEFER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-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@xxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux