drm/amd/display: do not allocate display_mode_lib unnecessarily
authorDor Askayo <dor.askayo@gmail.com>
Sat, 4 Jan 2020 12:22:15 +0000 (14:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jan 2020 21:46:45 +0000 (16:46 -0500)
commitbb67bfd2e7101bf2ac5327b0b7a847cd9fb9723f
tree19ab501f9c5fb67a4d64d756eedf8ef3893ab33c
parent77171eade8faa713c1104b29ea7ff96915ecf9fb
drm/amd/display: do not allocate display_mode_lib unnecessarily

This allocation isn't required and can fail when resuming from suspend.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/1009
Signed-off-by: Dor Askayo <dor.askayo@gmail.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c