drm/mediatek: unbind components in mtk_drm_unbind()
commit79e095d234bbec5725e4b3c940781b405286d081
authorHsin-Yi Wang <hsinyi@chromium.org>
Wed, 29 May 2019 10:25:53 +0000 (29 18:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:53:33 +0000 (10 09:53 +0200)
tree583831b523152d9d57a9a66b780808e5aa96ab55
parent319f4699bcaa8b496ba547f1695f76b2618917e8
drm/mediatek: unbind components in mtk_drm_unbind()

[ Upstream commit f0fd848342802bc0f74620d387eead53e8905804 ]

Unbinding components (i.e. mtk_dsi and mtk_disp_ovl/rdma/color) will
trigger master(mtk_drm)'s .unbind(), and currently mtk_drm's unbind
won't actually unbind components. During the next bind,
mtk_drm_kms_init() is called, and the components are added back.

.unbind() should call mtk_drm_kms_deinit() to unbind components.

And since component_master_del() in .remove() will trigger .unbind(),
which will also unregister device, it's fine to remove original functions
called here.

Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c