aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_display.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_display.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_display.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_display.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index d2036df145b3..48a3f677feca 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -582,12 +582,10 @@ int amdgpu_modeset_create_props(struct amdgpu_device *adev)
582{ 582{
583 int sz; 583 int sz;
584 584
585 if (adev->is_atom_bios) { 585 adev->mode_info.coherent_mode_property =
586 adev->mode_info.coherent_mode_property = 586 drm_property_create_range(adev->ddev, 0 , "coherent", 0, 1);
587 drm_property_create_range(adev->ddev, 0 , "coherent", 0, 1); 587 if (!adev->mode_info.coherent_mode_property)
588 if (!adev->mode_info.coherent_mode_property) 588 return -ENOMEM;
589 return -ENOMEM;
590 }
591 589
592 adev->mode_info.load_detect_property = 590 adev->mode_info.load_detect_property =
593 drm_property_create_range(adev->ddev, 0, "load detection", 0, 1); 591 drm_property_create_range(adev->ddev, 0, "load detection", 0, 1);