aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorNils Wallménius <nils.wallmenius@gmail.com>2016-12-14 15:52:45 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-01-27 11:12:39 -0500
commitf7e9e9feb09f833d03f5fc3f378083b4664bd374 (patch)
tree838e3d5fffca067480fe65c63c399be1fb9e94ae /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parente11666eb9b6bd55dfcfba7c2e029161932568335 (diff)
drm/amdgpu: Remove checking for atombios
This is a left over from radeon, amdgpu doesn't support any non-atombios parts and amdgpu_device_init would bail if the check for atombios failed anyway. Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Signed-off-by: Nils Wallménius <nils.wallmenius@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
index 5796539a0bcb..ef79551b4cb7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
@@ -672,12 +672,10 @@ int amdgpu_acpi_init(struct amdgpu_device *adev)
672 672
673 if ((enc->devices & (ATOM_DEVICE_LCD_SUPPORT)) && 673 if ((enc->devices & (ATOM_DEVICE_LCD_SUPPORT)) &&
674 enc->enc_priv) { 674 enc->enc_priv) {
675 if (adev->is_atom_bios) { 675 struct amdgpu_encoder_atom_dig *dig = enc->enc_priv;
676 struct amdgpu_encoder_atom_dig *dig = enc->enc_priv; 676 if (dig->bl_dev) {
677 if (dig->bl_dev) { 677 atif->encoder_for_bl = enc;
678 atif->encoder_for_bl = enc; 678 break;
679 break;
680 }
681 } 679 }
682 } 680 }
683 } 681 }