linux-stable/drivers/media/platform/s3c-camif
Dinghao Liu a4ef57d1cb media: platform: s3c-camif: Fix runtime PM imbalance on error
[ Upstream commit dafa3605fe ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:07:15 +01:00
..
Makefile
camif-capture.c
camif-core.c media: platform: s3c-camif: Fix runtime PM imbalance on error 2020-10-29 09:07:15 +01:00
camif-core.h
camif-regs.c
camif-regs.h