linux/drivers/media/cec/platform
Mauro Carvalho Chehab fdc34e82c0 media: s5p: fix pm_runtime_get_sync() usage count
The pm_runtime_get_sync() internally increments the
dev->power.usage_count without decrementing it, even on errors.
Replace it by the new pm_runtime_resume_and_get(), introduced by:
commit dd8088d5a8 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
in order to properly decrement the usage counter, avoiding
a potential PM usage counter leak.

While here, check if the PM runtime error was caught at
s5p_cec_adap_enable().

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-05-10 11:36:33 +02:00
..
cec-gpio media: cec-gpio: handle gpiod_get_value errors correctly 2020-04-29 12:04:38 +02:00
cros-ec media: cros-ec-cec: do not bail on device_init_wakeup failure 2020-07-04 12:45:45 +02:00
meson
s5p media: s5p: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
seco media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
sti
stm32
tegra
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile media: cec: add stm32 driver 2021-01-26 19:15:54 +01:00