diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-03-03 09:21:44 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-08 11:01:54 -0500 |
commit | 98822a2f748cf400a1fa08eabd0ccf6baa146a92 (patch) | |
tree | 97db5f6770df2ca7b4d39f08ad7962e03ebc9eac | |
parent | 441ce96f14075f7c5e2995f07e7f037cc43c4a08 (diff) |
drm/amd/amdgpu: Move initialized flag to bottom of sw_init (DCEv10)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c index 199b95fff046..6555b4a0c34a 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | |||
@@ -2983,8 +2983,6 @@ static int dce_v10_0_sw_init(void *handle) | |||
2983 | if (r) | 2983 | if (r) |
2984 | return r; | 2984 | return r; |
2985 | 2985 | ||
2986 | adev->mode_info.mode_config_initialized = true; | ||
2987 | |||
2988 | adev->ddev->mode_config.funcs = &amdgpu_mode_funcs; | 2986 | adev->ddev->mode_config.funcs = &amdgpu_mode_funcs; |
2989 | 2987 | ||
2990 | adev->ddev->mode_config.max_width = 16384; | 2988 | adev->ddev->mode_config.max_width = 16384; |
@@ -3023,7 +3021,8 @@ static int dce_v10_0_sw_init(void *handle) | |||
3023 | 3021 | ||
3024 | drm_kms_helper_poll_init(adev->ddev); | 3022 | drm_kms_helper_poll_init(adev->ddev); |
3025 | 3023 | ||
3026 | return r; | 3024 | adev->mode_info.mode_config_initialized = true; |
3025 | return 0; | ||
3027 | } | 3026 | } |
3028 | 3027 | ||
3029 | static int dce_v10_0_sw_fini(void *handle) | 3028 | static int dce_v10_0_sw_fini(void *handle) |