diff options
author | Bernard Zhao <bernard@vivo.com> | 2020-04-28 15:17:47 +0200 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2020-05-13 12:00:37 +0200 |
commit | c54a8f1f329197d83d941ad84c4aa38bf282cbbd (patch) | |
tree | c36e0867864d1b91c87a138291f8e8988641dfad /drivers/gpu/drm/meson | |
parent | drm: Fix HDCP failures when SRM fw is missing (diff) | |
download | linux-c54a8f1f329197d83d941ad84c4aa38bf282cbbd.tar.xz linux-c54a8f1f329197d83d941ad84c4aa38bf282cbbd.zip |
drm/meson: pm resume add return errno branch
pm_resump api did not handle drm_mode_config_helper_resume error.
This change add handle to return drm_mode_config_helper_resume`s
error number. This code logic is aligned with api pm_suspend.
After this change, the code maybe a bit readable.
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200428131747.2099-1-bernard@vivo.com
Diffstat (limited to 'drivers/gpu/drm/meson')
-rw-r--r-- | drivers/gpu/drm/meson/meson_drv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index b5f5eb7b4bb9..8c2e1b47e81a 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -412,9 +412,7 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev) if (priv->afbcd.ops) priv->afbcd.ops->init(priv); - drm_mode_config_helper_resume(priv->drm); - - return 0; + return drm_mode_config_helper_resume(priv->drm); } static int compare_of(struct device *dev, void *data) |