drm/rockchip: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
authorYuan Can <yuancan@huawei.com>
Wed, 15 Jun 2022 06:26:44 +0000 (06:26 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 29 Oct 2022 21:48:46 +0000 (23:48 +0200)
commite3558747ebe15306e6d0b75bd6d211436be4a7d5
treee0c4d71e128581f10b4a1769874b661dbf816610
parent3daf391fee830f2343cc6b1ba131b1b5115dea1f
drm/rockchip: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()

Replace pm_runtime_get_sync() with pm_runtime_resume_and_get() to avoid
device usage counter leak.

Signed-off-by: Yuan Can <yuancan@huawei.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220615062644.96837-1-yuancan@huawei.com
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c