Skip to content

Commit

Permalink
media: davinci: vpif: fix unbalanced runtime PM get
Browse files Browse the repository at this point in the history
Make sure to balance the runtime PM usage counter on driver unbind.

Fixes: 407ccc6 ("[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>
  • Loading branch information
Johan Hovold authored and Mauro Carvalho Chehab committed Jan 23, 2022
1 parent 9773318 commit 4a321de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/platform/davinci/vpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,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;
}
Expand Down

0 comments on commit 4a321de

Please sign in to comment.