Skip to content

Commit

Permalink
drm/mediatek: Add component_del in OVL and COLOR remove function
Browse files Browse the repository at this point in the history
[ Upstream commit da4d451 ]

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 <jason-jh.lin@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
jason-jh.lin authored and Sasha Levin committed Aug 26, 2021
1 parent e5f25a6 commit 3d7f503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/mediatek/mtk_disp_color.c
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/mediatek/mtk_disp_ovl.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3d7f503

Please sign in to comment.