summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2018-05-02 09:40:24 +0200
committerHeiko Stuebner <heiko@sntech.de>2018-05-20 13:44:41 +0200
commite8b58d6de1fe9119018ed9bbeecf373dcc397b8d (patch)
treebae5a5129bc770715608a7f0f172a7dc5113bfc8 /drivers
parent957428f9935ac6f41443431f61478023261c8d36 (diff)
downloadblackbird-obmc-linux-e8b58d6de1fe9119018ed9bbeecf373dcc397b8d.tar.gz
blackbird-obmc-linux-e8b58d6de1fe9119018ed9bbeecf373dcc397b8d.zip
drm/rockchip: lvds: 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 <peda@axentia.se> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20180502074025.12421-3-peda@axentia.se
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_lvds.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c
index e67f4ea28c0e..4bd94b167d2c 100644
--- a/drivers/gpu/drm/rockchip/rockchip_lvds.c
+++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c
@@ -446,14 +446,12 @@ static int rockchip_lvds_bind(struct device *dev, struct device *master,
goto err_free_connector;
}
} else {
- lvds->bridge->encoder = encoder;
ret = drm_bridge_attach(encoder, lvds->bridge, NULL);
if (ret) {
DRM_DEV_ERROR(drm_dev->dev,
"failed to attach bridge: %d\n", ret);
goto err_free_encoder;
}
- encoder->bridge = lvds->bridge;
}
pm_runtime_enable(dev);
OpenPOWER on IntegriCloud