OSDN Git Service

media: vpif: Fix runtime PM imbalance in vpif_probe
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 23 May 2020 11:49:17 +0000 (13:49 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 11:21:04 +0000 (13:21 +0200)
commit4024d6f601e3c49bae9297930970f68d2621ea1d
tree8815d677c96856cc635281118d763937eac6bd0c
parent4f9b5709cc087337bf02f004f0a238ec7ebda25b
media: vpif: Fix runtime PM imbalance in vpif_probe

When platform_get_resource() returns an error code, a
pairing runtime PM usage counter decrement is needed
to keep the counter balanced.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/davinci/vpif.c