drm/mediatek: Add component_del in OVL and COLOR remove function
authorjason-jh.lin <jason-jh.lin@mediatek.com>
Tue, 10 Aug 2021 04:01:48 +0000 (12:01 +0800)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:05 +0000 (08:35 -0400)
[ Upstream commit da4d4517ba70216799e3eb3b9bd71aa9dca065da ]

Add component_del in OVL and COLOR remove function.

Fixes: ff1395609e20 ("drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver")
Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_color.c
drivers/gpu/drm/mediatek/mtk_disp_ovl.c

index 63f411ab393b70358d41f9f9f3389b1726d372df..bcb470caf0097a7d9c6f0fd3f82b1c173e6cf471 100644 (file)
@@ -134,6 +134,8 @@ static int mtk_disp_color_probe(struct platform_device *pdev)
 
 static int mtk_disp_color_remove(struct platform_device *pdev)
 {
+       component_del(&pdev->dev, &mtk_disp_color_component_ops);
+
        return 0;
 }
 
index 961f87f8d4d156f873bc0ad4167e7f27b4b116fc..32a2922bbe5fb518f3332a983cc96c6d436c5dae 100644 (file)
@@ -424,6 +424,8 @@ static int mtk_disp_ovl_probe(struct platform_device *pdev)
 
 static int mtk_disp_ovl_remove(struct platform_device *pdev)
 {
+       component_del(&pdev->dev, &mtk_disp_ovl_component_ops);
+
        return 0;
 }