media: davinci: vpif: fix unbalanced runtime PM get
authorJohan Hovold <johan@kernel.org>
Wed, 22 Dec 2021 14:20:22 +0000 (15:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:42 +0000 (21:18 +0100)
commit4a321de239213300a714fa0353a5f1272d381a44
tree41e57888f865a27c5736e579082ea64f7b686fb5
parent97733180fafbeb7cc3fd1c8be60d05980615f5d6
media: davinci: vpif: fix unbalanced runtime PM get

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

Fixes: 407ccc65bfd2 ("[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>
drivers/media/platform/davinci/vpif.c