]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: remove duplicate call to rn_vbios_smu_get_smu_version()
authorDirk Gouders <dirk@gouders.net>
Sun, 27 Sep 2020 09:39:45 +0000 (11:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2020 21:10:31 +0000 (17:10 -0400)
Commit 56883cbe8c5336 ("drm/amd/display: Remove DISPCLK Limit Floor for Certain SMU Versions")
added a call to rn_vbios_smu_get_smu_version() to set clk_mgr->smu_ver.
That field is initialized prior to the if-statement, already.

Fixes: 56883cbe8c5336 (drm/amd/display: Remove DISPCLK Limit Floor for Certain SMU Versions)
Signed-off-by: Dirk Gouders <dirk@gouders.net>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Sung Lee <sung.lee@amd.com>
Cc: Yongqiang Sun <yongqiang.sun@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c

index 543afa34d87aaa21fbb8a5cd497b3df091eccc34..21a3073c8929e5576eed2ce67d3cf9dabb1cf6d3 100644 (file)
@@ -783,7 +783,6 @@ void rn_clk_mgr_construct(
        } else {
                struct clk_log_info log_info = {0};
 
-               clk_mgr->smu_ver = rn_vbios_smu_get_smu_version(clk_mgr);
                clk_mgr->periodic_retraining_disabled = rn_vbios_smu_is_periodic_retraining_disabled(clk_mgr);
 
                /* SMU Version 55.51.0 and up no longer have an issue