summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-06-15 16:25:11 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:22:39 -0400
commit6f43fd6297c478995b6a9e61482272137ec36260 (patch)
tree1f9e87240184291994572ffdf1d5daacbd563650 /drivers/gpu
parent9faa423716b17b0c9ba92fd12737968de6918d88 (diff)
downloadlinux-6f43fd6297c478995b6a9e61482272137ec36260.tar.bz2
drm/amd/display: fix nullptr on vega initialization
Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Reviewed-by: Roman Li <Roman.Li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 30148b4eabae..a9b4eb0099ac 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1427,6 +1427,7 @@ static int dm_early_init(void *handle)
adev->mode_info.num_crtc = 6;
adev->mode_info.num_hpd = 6;
adev->mode_info.num_dig = 6;
+ adev->mode_info.plane_type = dm_surfaces_type_default;
break;
default:
DRM_ERROR("Usupported ASIC type: 0x%X\n", adev->asic_type);