diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2022-09-23 21:38:44 +0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-10-08 15:20:08 +0200 |
commit | b0e0706007030d1eb05d25de0359725357fe5be6 (patch) | |
tree | c4ceae56318edd76fc8a5f522498ac05f3a733d8 /drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c | |
parent | 2559f17ec878adf5c54815e55cf0b72c02bb5303 (diff) | |
download | linux-b0e0706007030d1eb05d25de0359725357fe5be6.tar.bz2 |
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/hdmi4.c')
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c index 800bd108e834..0f39612e002e 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c @@ -38,11 +38,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; } |