linux/drivers/media/platform/s3c-camif
Dinghao Liu dafa3605fe media: platform: s3c-camif: Fix runtime PM imbalance on error
pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Also, call pm_runtime_disable() when pm_runtime_get_sync() returns
an error code.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Sylwester Nawrocki <snawrocki@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-27 10:50:56 +02:00
..
camif-capture.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
camif-core.c media: platform: s3c-camif: Fix runtime PM imbalance on error 2020-09-27 10:50:56 +02:00
camif-core.h media: media/platform: don't set description in ENUM_FMT 2019-07-22 14:43:59 -04:00
camif-regs.c media: s3c-camif: make array 'registers' static const, makes object smaller 2019-10-01 16:43:49 -03:00
camif-regs.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00