From: Tom St Denis Date: Thu, 3 Mar 2016 14:42:43 +0000 (-0500) Subject: drm/amd/amdgpu: Move config init flag to bottom of sw_init (DCEv8) X-Git-Tag: v5.15~13916^2~6^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74c1e842793fcc470413b1f7d14e2e74e1e8240b;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/amdgpu: Move config init flag to bottom of sw_init (DCEv8) Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index ab536d3..a7d8711 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c @@ -2893,8 +2893,6 @@ static int dce_v8_0_sw_init(void *handle) if (r) return r; - adev->mode_info.mode_config_initialized = true; - adev->ddev->mode_config.funcs = &amdgpu_mode_funcs; adev->ddev->mode_config.max_width = 16384; @@ -2933,7 +2931,8 @@ static int dce_v8_0_sw_init(void *handle) drm_kms_helper_poll_init(adev->ddev); - return r; + adev->mode_info.mode_config_initialized = true; + return 0; } static int dce_v8_0_sw_fini(void *handle)