2014-12-20 14:53:07

by Rickard Strandqvist

[permalink] [raw]
Subject: [PATCH] gpu: drm: radeon: radeon_atombios.c: Remove unused function

Remove the function radeon_atom_update_memory_dll() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <[email protected]>
---
drivers/gpu/drm/radeon/radeon.h | 2 --
drivers/gpu/drm/radeon/radeon_atombios.c | 11 -----------
2 files changed, 13 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index a9717b3..c5a8c53 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -328,8 +328,6 @@ bool radeon_atom_is_voltage_gpio(struct radeon_device *rdev,
int radeon_atom_get_svi2_info(struct radeon_device *rdev,
u8 voltage_type,
u8 *svd_gpio_id, u8 *svc_gpio_id);
-void radeon_atom_update_memory_dll(struct radeon_device *rdev,
- u32 mem_clock);
void radeon_atom_set_ac_timing(struct radeon_device *rdev,
u32 mem_clock);
int radeon_atom_init_mc_reg_table(struct radeon_device *rdev,
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index df69b92..74017da 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -3027,17 +3027,6 @@ void radeon_atom_set_engine_dram_timings(struct radeon_device *rdev,
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
}

-void radeon_atom_update_memory_dll(struct radeon_device *rdev,
- u32 mem_clock)
-{
- u32 args;
- int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
-
- args = cpu_to_le32(mem_clock); /* 10 khz */
-
- atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
-}
-
void radeon_atom_set_ac_timing(struct radeon_device *rdev,
u32 mem_clock)
{
--
1.7.10.4