diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2016-05-26 16:08:18 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-06-01 16:09:56 +0200 |
commit | 2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f (patch) | |
tree | 2de7b3e2add5a4523e4ef64a0b8924d19136b1a6 | |
parent | 515ba6a59cbab44c989f25b2518b82491deb832e (diff) | |
download | linux-2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f.tar.bz2 |
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>
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_dsi.c | 4 |
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) |