Skip to content

Commit da4d451

Browse files
jason-jh.linChun-Kuang Hu
authored andcommitted
drm/mediatek: Add component_del in OVL and COLOR remove function
Add component_del in OVL and COLOR remove function. Fixes: ff13956 ("drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver") Signed-off-by: jason-jh.lin <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 71ac6f3 commit da4d451

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/gpu/drm/mediatek/mtk_disp_color.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ static int mtk_disp_color_probe(struct platform_device *pdev)
133133

134134
static int mtk_disp_color_remove(struct platform_device *pdev)
135135
{
136+
component_del(&pdev->dev, &mtk_disp_color_component_ops);
137+
136138
return 0;
137139
}
138140

drivers/gpu/drm/mediatek/mtk_disp_ovl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ static int mtk_disp_ovl_probe(struct platform_device *pdev)
423423

424424
static int mtk_disp_ovl_remove(struct platform_device *pdev)
425425
{
426+
component_del(&pdev->dev, &mtk_disp_ovl_component_ops);
427+
426428
return 0;
427429
}
428430

0 commit comments

Comments
 (0)