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 <[email protected]> Signed-off-by: Luca Ceresoli <[email protected]> --- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 5 ++--- 1 file 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); -- 2.55.0
