[PATCH 01/19] drm/amd/display: remove unused mmhub_reg_offsets
Wayne Lin
Wayne.Lin at amd.com
Wed Sep 20 03:16:06 UTC 2023
From: Qingqing Zhuo <qingqing.zhuo at amd.com>
[Why & How]
mmhub_reg_offsets never used in code. Remove it.
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira at amd.com>
Acked-by: Wayne Lin <wayne.lin at amd.com>
Signed-off-by: Qingqing Zhuo <qingqing.zhuo at amd.com>
---
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c b/drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c
index 961af9e7d5c7..06fd02084d7c 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c
@@ -205,16 +205,6 @@ enum dcn35_clk_src_array_id {
REG_STRUCT[id].reg_name = NBIO_BASE(regBIF_BX2_ ## reg_name ## _BASE_IDX) + \
regBIF_BX2_ ## reg_name
-/* MMHUB */
-#define MMHUB_BASE_INNER(seg) ctx->mmhub_reg_offsets[seg]
-
-#define MMHUB_BASE(seg) \
- MMHUB_BASE_INNER(seg)
-
-#define MMHUB_SR(reg_name)\
- REG_STRUCT.reg_name = MMHUB_BASE(reg ## reg_name ## _BASE_IDX) + \
- reg ## reg_name
-
#define bios_regs_init() \
( \
NBIO_SR(BIOS_SCRATCH_3),\
--
2.37.3
More information about the amd-gfx
mailing list