mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
media: davinci: vpif: fix unbalanced runtime PM get
commit4a321de239
upstream. Make sure to balance the runtime PM usage counter on driver unbind. Fixes:407ccc65bf
("[media] davinci: vpif: add pm_runtime support") Cc: stable@vger.kernel.org # 3.9 Cc: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ba12400ed8
commit
8e720f0fa4
1 changed files with 1 additions and 0 deletions
|
@ -495,6 +495,7 @@ static int vpif_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
static int vpif_remove(struct platform_device *pdev)
|
static int vpif_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
|
pm_runtime_put(&pdev->dev);
|
||||||
pm_runtime_disable(&pdev->dev);
|
pm_runtime_disable(&pdev->dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue