mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
media: mediatek: vcodec: add remove function for decoder platform driver
[ Upstream commite2a10b3801] Need to disable decoder power when remove decoder hardware driver, adding remove callback function in the definition of platform driver. Fixes:c05bada35f("media: mtk-vcodec: Add to support multi hardware decode") Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c692a44bc5
commit
1d1735c6fb
@@ -193,8 +193,16 @@ err:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int mtk_vdec_hw_remove(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
pm_runtime_disable(&pdev->dev);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static struct platform_driver mtk_vdec_driver = {
|
static struct platform_driver mtk_vdec_driver = {
|
||||||
.probe = mtk_vdec_hw_probe,
|
.probe = mtk_vdec_hw_probe,
|
||||||
|
.remove = mtk_vdec_hw_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mtk-vdec-comp",
|
.name = "mtk-vdec-comp",
|
||||||
.of_match_table = mtk_vdec_hw_match,
|
.of_match_table = mtk_vdec_hw_match,
|
||||||
|
|||||||
Reference in New Issue
Block a user