提交 06e2bca9 编写于 作者: J Johan Hovold 提交者: Zheng Zengkai

media: davinci: vpif: fix unbalanced runtime PM get

stable inclusion
from stable-v5.10.110
commit 7c9b915b9463604a29a0b03383835e2a23e53d21
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7c9b915b9463604a29a0b03383835e2a23e53d21

--------------------------------

commit 4a321de2 upstream.

Make sure to balance the runtime PM usage counter on driver unbind.

Fixes: 407ccc65 ("[media] davinci: vpif: add pm_runtime support")
Cc: stable@vger.kernel.org      # 3.9
Cc: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: NJohan Hovold <johan@kernel.org>
Reviewed-by: NLad Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 fbdbe740
......@@ -497,6 +497,7 @@ static int vpif_probe(struct platform_device *pdev)
static int vpif_remove(struct platform_device *pdev)
{
pm_runtime_put(&pdev->dev);
pm_runtime_disable(&pdev->dev);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册