Skip to content

Commit c54a8f1

Browse files
Bernard Zhaosuperna9999
authored andcommitted
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 <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 5fe89a6 commit c54a8f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/meson/meson_drv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
412412
if (priv->afbcd.ops)
413413
priv->afbcd.ops->init(priv);
414414

415-
drm_mode_config_helper_resume(priv->drm);
416-
417-
return 0;
415+
return drm_mode_config_helper_resume(priv->drm);
418416
}
419417

420418
static int compare_of(struct device *dev, void *data)

0 commit comments

Comments
 (0)