summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2016-05-26 16:08:18 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-06-01 16:09:56 +0200
commit2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f (patch)
tree2de7b3e2add5a4523e4ef64a0b8924d19136b1a6 /drivers
parent515ba6a59cbab44c989f25b2518b82491deb832e (diff)
downloadlinux-stable-2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f.tar.gz
linux-stable-2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f.tar.bz2
linux-stable-2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f.zip
drm/mediatek: mtk_dsi: Remove spurious drm_connector_unregister
Connectors are unregistered by mtk_drm_drv via drm_connector_unregister_all(). Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_dsi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c
index 2d808e59fefd..769559124562 100644
--- a/drivers/gpu/drm/mediatek/mtk_dsi.c
+++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
@@ -695,10 +695,8 @@ static void mtk_dsi_destroy_conn_enc(struct mtk_dsi *dsi)
{
drm_encoder_cleanup(&dsi->encoder);
/* Skip connector cleanup if creation was delegated to the bridge */
- if (dsi->conn.dev) {
- drm_connector_unregister(&dsi->conn);
+ if (dsi->conn.dev)
drm_connector_cleanup(&dsi->conn);
- }
}
static void mtk_dsi_ddp_start(struct mtk_ddp_comp *comp)