diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-02 07:26:42 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-02 13:43:24 -0400 |
commit | d8d46ae97ffd4ace4b8a7f45c232ff4bb8b6c129 (patch) | |
tree | 7191a03a9ea5c99bc22274ffa4c9d38bdc3df26b | |
parent | d8eed8263aa09c0c92416d06321eae4ad3eda343 (diff) |
drm/amdgpu/display: remove unused REG_OFFSET macro
The name conflicts with another macro of the same name on the ARM ixp4xx
platform, leading to build errors.
Neither of the users actually should use a name that generic, but the
other one was here first and the dc driver doesn't actually use it.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dm_services.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dm_services.h b/drivers/gpu/drm/amd/display/dc/dm_services.h index c8190c38a644..d4917037ac42 100644 --- a/drivers/gpu/drm/amd/display/dc/dm_services.h +++ b/drivers/gpu/drm/amd/display/dc/dm_services.h | |||
@@ -160,9 +160,6 @@ unsigned int generic_reg_wait(const struct dc_context *ctx, | |||
160 | /* These macros need to be used with soc15 registers in order to retrieve | 160 | /* These macros need to be used with soc15 registers in order to retrieve |
161 | * the actual offset. | 161 | * the actual offset. |
162 | */ | 162 | */ |
163 | #define REG_OFFSET(reg) (reg + DCE_BASE.instance[0].segment[reg##_BASE_IDX]) | ||
164 | #define REG_BIF_OFFSET(reg) (reg + NBIF_BASE.instance[0].segment[reg##_BASE_IDX]) | ||
165 | |||
166 | #define dm_write_reg_soc15(ctx, reg, inst_offset, value) \ | 163 | #define dm_write_reg_soc15(ctx, reg, inst_offset, value) \ |
167 | dm_write_reg_func(ctx, reg + DCE_BASE.instance[0].segment[reg##_BASE_IDX] + inst_offset, value, __func__) | 164 | dm_write_reg_func(ctx, reg + DCE_BASE.instance[0].segment[reg##_BASE_IDX] + inst_offset, value, __func__) |
168 | 165 | ||