diff options
author | Yuan Can <yuancan@huawei.com> | 2022-06-15 09:26:44 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2022-10-30 00:48:46 +0300 |
commit | e3558747ebe15306e6d0b75bd6d211436be4a7d5 (patch) | |
tree | e0c4d71e128581f10b4a1769874b661dbf816610 /drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | |
parent | 3daf391fee830f2343cc6b1ba131b1b5115dea1f (diff) | |
download | linux-e3558747ebe15306e6d0b75bd6d211436be4a7d5.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c')
-rw-r--r-- | drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 313231d886d2..92b599b089f9 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1207,7 +1207,7 @@ static int dw_mipi_dsi_dphy_power_on(struct phy *phy) return i; } - ret = pm_runtime_get_sync(dsi->dev); + ret = pm_runtime_resume_and_get(dsi->dev); if (ret < 0) { DRM_DEV_ERROR(dsi->dev, "failed to enable device: %d\n", ret); return ret; |