summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2022-09-23 21:38:44 +0800
committerHelge Deller <deller@gmx.de>2022-10-08 15:20:08 +0200
commitb0e0706007030d1eb05d25de0359725357fe5be6 (patch)
treec4ceae56318edd76fc8a5f522498ac05f3a733d8 /drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
parent2559f17ec878adf5c54815e55cf0b72c02bb5303 (diff)
fbdev: omapfb/dss: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
Using the newest pm_runtime_resume_and_get is more appropriate for simplifing code here. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c')
-rw-r--r--drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
index 2c03608addcd..bfccc2cb917a 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
@@ -42,11 +42,9 @@ static int hdmi_runtime_get(void)
DSSDBG("hdmi_runtime_get\n");
- r = pm_runtime_get_sync(&hdmi.pdev->dev);
- if (WARN_ON(r < 0)) {
- pm_runtime_put_sync(&hdmi.pdev->dev);
+ r = pm_runtime_resume_and_get(&hdmi.pdev->dev);
+ if (WARN_ON(r < 0))
return r;
- }
return 0;
}