drm/amd/powerplay: remove duplicate code from smu hw init
authorKevin Wang <kevin1.wang@amd.com>
Tue, 19 Mar 2019 03:00:41 +0000 (11:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:25 +0000 (18:59 -0500)
remove duplicate code (un-used) in smu

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 2de67e1..a48ca6a 100644 (file)
@@ -637,10 +637,6 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
                if (ret)
                        return ret;
 
-               ret = smu_get_clk_info_from_vbios(smu);
-               if (ret)
-                       return ret;
-
                /*
                 * check if the format_revision in vbios is up to pptable header
                 * version, and the structure size is not 0.