]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Remove duplicated code
authorRay Wu <ray.wu@amd.com>
Mon, 8 Sep 2025 09:21:27 +0000 (17:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 20:18:01 +0000 (16:18 -0400)
[Why&How]
Remove duplicated code

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c

index 8475c6eec547b589daa70f175212477f91883ca2..1d1a002f6d54f14026bafbd331d6da34f1bfee76 100644 (file)
@@ -1900,9 +1900,6 @@ static bool dcn35_resource_construct(
        dc->caps.num_of_host_routers = 2;
        dc->caps.num_of_dpias_per_host_router = 2;
 
-       dc->caps.num_of_host_routers = 2;
-       dc->caps.num_of_dpias_per_host_router = 2;
-
        /* max_disp_clock_khz_at_vmin is slightly lower than the STA value in order
         * to provide some margin.
         * It's expected for furture ASIC to have equal or higher value, in order to
index 0971c0f74186559889cc1bcb6d3412d7bddb481f..47912e0861a2b8a3bd46e51b20ceb3ca9ed71fdc 100644 (file)
@@ -1872,9 +1872,6 @@ static bool dcn351_resource_construct(
        dc->caps.num_of_host_routers = 2;
        dc->caps.num_of_dpias_per_host_router = 2;
 
-       dc->caps.num_of_host_routers = 2;
-       dc->caps.num_of_dpias_per_host_router = 2;
-
        /* max_disp_clock_khz_at_vmin is slightly lower than the STA value in order
         * to provide some margin.
         * It's expected for furture ASIC to have equal or higher value, in order to
index 8bae7fcedc22d3cc9515bdbe572fa0dfb375de20..9ba91e214ddaae1e2b528da4f1f62ef928fc79d9 100644 (file)
@@ -1873,9 +1873,6 @@ static bool dcn36_resource_construct(
        dc->caps.num_of_host_routers = 2;
        dc->caps.num_of_dpias_per_host_router = 2;
 
-       dc->caps.num_of_host_routers = 2;
-       dc->caps.num_of_dpias_per_host_router = 2;
-
        /* max_disp_clock_khz_at_vmin is slightly lower than the STA value in order
         * to provide some margin.
         * It's expected for furture ASIC to have equal or higher value, in order to