diff options
author | Dave Airlie <airlied@redhat.com> | 2016-06-01 23:57:20 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-06-01 23:57:20 +0300 |
commit | a9bf7d60c273763d3f0f4f991bd96fbc411bfd73 (patch) | |
tree | 1ac81a645518f614ac6d0097f1f8d46a5045085e /drivers/gpu/drm/mediatek/mtk_dsi.c | |
parent | d3922b69617b62bb2509936b68301f837229d9f0 (diff) | |
parent | 2ea9f31799adce35d8c9a0bb3bc1d2b515702c6f (diff) | |
download | linux-a9bf7d60c273763d3f0f4f991bd96fbc411bfd73.tar.xz |
Merge tag 'mediatek-drm-fixes-2016-06-01' of git://git.pengutronix.de/git/pza/linux into drm-fixes
mediatek-drm fixes
- remove an invalid, unreachable error message and NULL pointer dereference
- remove a spurious drm_connector_unregister call from the DSI driver
* tag 'mediatek-drm-fixes-2016-06-01' of git://git.pengutronix.de/git/pza/linux:
drm/mediatek: mtk_dsi: Remove spurious drm_connector_unregister
drm/mediatek: mtk_dpi: remove invalid error message
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_dsi.c')
-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) |