mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
media: mediatek: vcodec: add remove function for decoder platform driver
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>
This commit is contained in:
parent
9d2f13fb47
commit
e2a10b3801
1 changed files with 8 additions and 0 deletions
|
@ -193,8 +193,16 @@ static int mtk_vdec_hw_probe(struct platform_device *pdev)
|
|||
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 = {
|
||||
.probe = mtk_vdec_hw_probe,
|
||||
.remove = mtk_vdec_hw_remove,
|
||||
.driver = {
|
||||
.name = "mtk-vdec-comp",
|
||||
.of_match_table = mtk_vdec_hw_match,
|
||||
|
|
Loading…
Reference in a new issue