summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2026-09-29 15:39:56 +0200
committerLuca Ceresoli <luca.ceresoli@bootlin.com>2026-10-01 17:31:56 +0200
commit0915fb19e08f7f14a03df78c67d081bbfa8ff1fa (patch)
treefb99364fcd13e4cb9718897ea6c5f9e557f8dba6
parentc720af66fe0f100e801a7e36b7b8f26f6cbbdb10 (diff)
downloadlinux-0915fb19e08f7f14a03df78c67d081bbfa8ff1fa.tar.gz
linux-0915fb19e08f7f14a03df78c67d081bbfa8ff1fa.zip
drm: renesas: shmobile: stop using deprecated devm_drm_of_get_bridge()
devm_drm_of_get_bridge() is deprecated, switch to of_drm_get_bridge_by_endpoint(). As of_drm_get_bridge_by_endpoint() returns a refcounted bridge, ensure it is put. drm_panel.h becomes unused, drop the include. Acked-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Paul Cercueil <paul.cercueil@bootlin.com> Link: https://patch.msgid.link/20260929-drm-fix-of_get_bridge-build-regression-v2-7-6da431d8f180@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
-rw-r--r--drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c
index 328a36215e39..51bae2008cc6 100644
--- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c
+++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c
@@ -28,7 +28,6 @@
#include <drm/drm_gem_dma_helper.h>
#include <drm/drm_modeset_helper.h>
#include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_panel.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_vblank.h>
@@ -447,7 +446,6 @@ static const struct drm_encoder_funcs shmob_encoder_funcs = {
int shmob_drm_encoder_create(struct shmob_drm_device *sdev)
{
struct drm_encoder *encoder = &sdev->encoder;
- struct drm_bridge *bridge;
int ret;
encoder->possible_crtcs = 1;
@@ -463,7 +461,8 @@ int shmob_drm_encoder_create(struct shmob_drm_device *sdev)
}
/* Create a panel bridge */
- bridge = devm_drm_of_get_bridge(sdev->dev, sdev->dev->of_node, 0, 0);
+ struct drm_bridge *bridge __free(drm_bridge_put) =
+ of_drm_get_bridge_by_endpoint(sdev->dev->of_node, 0, 0);
if (IS_ERR(bridge))
return PTR_ERR(bridge);