Skip to content

Commit f6da61b

Browse files
Dr. David Alan Gilbertalexdeucher
authored andcommitted
drm/amd/pm/smu13: Remove unused smu_v13_0_init_display_count
smu_v13_0_init_display_count() was added in 2020 by commit c05d1c4 ("drm/amd/swsmu: add aldebaran smu13 ip support (v3)") but is unused. See discussion on: https://lore.kernel.org/all/DM4PR12MB5165D85BD85BC8FC8BF7A3B48E88A@DM4PR12MB5165.namprd12.prod.outlook.com/ that it really isn't neede. Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 010503a commit f6da61b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ int smu_v13_0_notify_memory_pool_location(struct smu_context *smu);
163163
int smu_v13_0_system_features_control(struct smu_context *smu,
164164
bool en);
165165

166-
int smu_v13_0_init_display_count(struct smu_context *smu, uint32_t count);
167-
168166
int smu_v13_0_set_allowed_mask(struct smu_context *smu);
169167

170168
int smu_v13_0_notify_display_change(struct smu_context *smu);

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -749,18 +749,6 @@ int smu_v13_0_set_tool_table_location(struct smu_context *smu)
749749
return ret;
750750
}
751751

752-
int smu_v13_0_init_display_count(struct smu_context *smu, uint32_t count)
753-
{
754-
int ret = 0;
755-
756-
if (!smu->pm_enabled)
757-
return ret;
758-
759-
ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_NumOfDisplays, count, NULL);
760-
761-
return ret;
762-
}
763-
764752
int smu_v13_0_set_allowed_mask(struct smu_context *smu)
765753
{
766754
struct smu_feature *feature = &smu->smu_feature;

0 commit comments

Comments
 (0)