]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/bridge: imx8qxp-pixel-link: remove excess error message
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 16 Dec 2025 17:58:53 +0000 (18:58 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 30 Dec 2025 09:12:37 +0000 (10:12 +0100)
imx8qxp_pixel_link_find_next_bridge() already emits a DRM_DEV_ERROR() on
error except for -EPROBE_DEFER. The caller emits another one, which is
redundant. Remove the message in the caller and keep the one in
imx8qxp_pixel_link_find_next_bridge() as it is more informative about the
error cause.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20251216-drm-bridge-alloc-getput-drm_of_find_bridge-v3-20-b5165fab8058@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c

index e5943506981dfb8f113c94ad52ddbba52e00ec3f..433c080197a226b648943fc1e80e8a609eaf4c03 100644 (file)
@@ -374,13 +374,8 @@ static int imx8qxp_pixel_link_bridge_probe(struct platform_device *pdev)
                return ret;
 
        pl->next_bridge = imx8qxp_pixel_link_find_next_bridge(pl);
-       if (IS_ERR(pl->next_bridge)) {
-               ret = PTR_ERR(pl->next_bridge);
-               if (ret != -EPROBE_DEFER)
-                       DRM_DEV_ERROR(dev, "failed to find next bridge: %d\n",
-                                     ret);
-               return ret;
-       }
+       if (IS_ERR(pl->next_bridge))
+               return PTR_ERR(pl->next_bridge);
 
        platform_set_drvdata(pdev, pl);