drm/meson: pm resume add return errno branch
authorBernard Zhao <bernard@vivo.com>
Tue, 28 Apr 2020 13:17:47 +0000 (06:17 -0700)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 13 May 2020 10:00:37 +0000 (12:00 +0200)
commitc54a8f1f329197d83d941ad84c4aa38bf282cbbd
treec36e0867864d1b91c87a138291f8e8988641dfad
parent5fe89a6acd668cbd1817fcdef5caa9fee568c2e8
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
drivers/gpu/drm/meson/meson_drv.c