Skip to content

Commit 50610b7

Browse files
committed
drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not defined
Fixes: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_initialize_drm_device’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3726:7: error: implicit declaration of function ‘register_outbox_irq_handlers’; did you mean ‘register_hpd_handlers’? [-Werror=implicit-function-declaration] 3726 | if (register_outbox_irq_handlers(dm->adev)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | register_hpd_handlers Fixes: 81927e2 ("drm/amd/display: Support for DMUB AUX") Reviewed-by: Jude Shih <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: Jude Shish <[email protected]>
1 parent 610e6f7 commit 50610b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3718,6 +3718,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
37183718
goto fail;
37193719
}
37203720

3721+
#if defined(CONFIG_DRM_AMD_DC_DCN)
37213722
/* Use Outbox interrupt */
37223723
switch (adev->asic_type) {
37233724
case CHIP_SIENNA_CICHLID:
@@ -3731,6 +3732,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
37313732
default:
37323733
DRM_DEBUG_KMS("Unsupported ASIC type for outbox: 0x%X\n", adev->asic_type);
37333734
}
3735+
#endif
37343736

37353737
/* loops over all connectors on the board */
37363738
for (i = 0; i < link_cnt; i++) {

0 commit comments

Comments
 (0)