drm/amd/powerplay: drop redundant smu call
authorEvan Quan <evan.quan@amd.com>
Mon, 13 May 2019 03:16:27 +0000 (11:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:20:59 +0000 (12:20 -0500)
smu_get_clk_info_from_vbios() was called repeatedly. It
seems a merge error.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

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