Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/mediatek: Add component_del in OVL and COLOR remove function

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>

authored by

jason-jh.lin and committed by
Chun-Kuang Hu
da4d4517 71ac6f39

+4
+2
drivers/gpu/drm/mediatek/mtk_disp_color.c
··· 133 133 134 134 static int mtk_disp_color_remove(struct platform_device *pdev) 135 135 { 136 + component_del(&pdev->dev, &mtk_disp_color_component_ops); 137 + 136 138 return 0; 137 139 } 138 140
+2
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
··· 423 423 424 424 static int mtk_disp_ovl_remove(struct platform_device *pdev) 425 425 { 426 + component_del(&pdev->dev, &mtk_disp_ovl_component_ops); 427 + 426 428 return 0; 427 429 } 428 430