]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amd/amdgpu: Move initialized flag to bottom of sw_init (DCEv10)
authorTom St Denis <tom.stdenis@amd.com>
Thu, 3 Mar 2016 14:21:44 +0000 (09:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Mar 2016 16:01:54 +0000 (11:01 -0500)
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>
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c

index 199b95fff046c57a3494a6e7a7d28772be585e77..6555b4a0c34abb08ad4c1d1b30e3a21a5e2cd053 100644 (file)
@@ -2983,8 +2983,6 @@ static int dce_v10_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;
@@ -3023,7 +3021,8 @@ static int dce_v10_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_v10_0_sw_fini(void *handle)