drm/exynos: hdmi: avoid duplicating drm_bridge_attach
authorPeter Rosin <peda@axentia.se>
Wed, 2 May 2018 07:40:25 +0000 (09:40 +0200)
committerInki Dae <inki.dae@samsung.com>
Wed, 9 May 2018 00:04:57 +0000 (09:04 +0900)
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 <peda@axentia.se>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index abd84cb..09c4bc0 100644 (file)
@@ -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");