Commit c54a8f1f authored by Bernard Zhao's avatar Bernard Zhao Committed by Neil Armstrong

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: default avatarBernard Zhao <bernard@vivo.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200428131747.2099-1-bernard@vivo.com
parent 5fe89a6a
...@@ -412,9 +412,7 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev) ...@@ -412,9 +412,7 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
if (priv->afbcd.ops) if (priv->afbcd.ops)
priv->afbcd.ops->init(priv); priv->afbcd.ops->init(priv);
drm_mode_config_helper_resume(priv->drm); return drm_mode_config_helper_resume(priv->drm);
return 0;
} }
static int compare_of(struct device *dev, void *data) static int compare_of(struct device *dev, void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment