From: Peter Rosin Date: Wed, 2 May 2018 07:40:25 +0000 (+0200) Subject: drm/exynos: hdmi: avoid duplicating drm_bridge_attach X-Git-Tag: v4.19~1061^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f2db7dc901a1b89fbc50f7b38f0f7ee17205703;p=platform%2Fkernel%2Flinux-rpi3.git drm/exynos: hdmi: avoid duplicating drm_bridge_attach drm_bridge_attach takes care of these assignments, so there is no need to open-code them a second time. Signed-off-by: Peter Rosin Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index abd84cb..09c4bc0 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -954,8 +954,6 @@ static int hdmi_create_connector(struct drm_encoder *encoder) drm_mode_connector_attach_encoder(connector, encoder); if (hdata->bridge) { - encoder->bridge = hdata->bridge; - hdata->bridge->encoder = encoder; ret = drm_bridge_attach(encoder, hdata->bridge, NULL); if (ret) DRM_ERROR("Failed to attach bridge\n");