Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Bernard Zhao and committed by
Neil Armstrong
c54a8f1f 5fe89a6a

+1 -3
+1 -3
drivers/gpu/drm/meson/meson_drv.c
··· 412 412 if (priv->afbcd.ops) 413 413 priv->afbcd.ops->init(priv); 414 414 415 - drm_mode_config_helper_resume(priv->drm); 416 - 417 - return 0; 415 + return drm_mode_config_helper_resume(priv->drm); 418 416 } 419 417 420 418 static int compare_of(struct device *dev, void *data)