linux/drivers/media/platform/coda
Mauro Carvalho Chehab 7295e537bb media: coda: use pm_runtime_resume_and_get()
Commit dd8088d5a8 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
added pm_runtime_resume_and_get() in order to automatically handle
dev->power.usage_count decrement on errors.

Use the new API, in order to cleanup the error check logic.

While here, as noted by Phillip, the labels at the coda_open()
function are currently named after what operation failed,
instead of what they do in response. So, change the name of
the error label that it is called when clk_enable fails,
in order to be consistent.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-05-19 09:51:42 +02:00
..
coda_regs.h media: coda: jpeg: add JPEG register definitions for CODA960 2019-12-16 10:04:21 +01:00
coda-bit.c media: coda: Add a V4L2 user for control error macroblocks count 2020-11-16 10:31:16 +01:00
coda-common.c media: coda: use pm_runtime_resume_and_get() 2021-05-19 09:51:42 +02:00
coda-gdi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
coda-h264.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
coda-jpeg.c media: coda: jpeg: add NULL check after kmalloc 2020-07-04 11:56:37 +02:00
coda-mpeg2.c media: coda: pad first buffer with repeated MPEG headers to fix sequence init 2019-06-24 14:30:59 -04:00
coda-mpeg4.c media: coda: pad first buffer with repeated MPEG headers to fix sequence init 2019-06-24 14:30:59 -04:00
coda.h media: coda: Add a V4L2 user for control error macroblocks count 2020-11-16 10:31:16 +01:00
imx-vdoa.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
imx-vdoa.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
Makefile media: drivers: media: coda: fix warning same module names 2019-06-12 10:45:05 -04:00
trace.h media: coda: jpeg: add CODA960 JPEG encoder support 2019-12-16 10:07:59 +01:00