aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.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_bios.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_bios.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
index 8ec1967a850b..f573a953b4c3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
@@ -394,15 +394,15 @@ bool amdgpu_get_bios(struct amdgpu_device *adev)
394 if (!bios_header_start) { 394 if (!bios_header_start) {
395 goto free_bios; 395 goto free_bios;
396 } 396 }
397
398 /* Must be an ATOMBIOS */
397 tmp = bios_header_start + 4; 399 tmp = bios_header_start + 4;
398 if (!memcmp(adev->bios + tmp, "ATOM", 4) || 400 if (memcmp(adev->bios + tmp, "ATOM", 4) &&
399 !memcmp(adev->bios + tmp, "MOTA", 4)) { 401 memcmp(adev->bios + tmp, "MOTA", 4)) {
400 adev->is_atom_bios = true; 402 goto free_bios;
401 } else {
402 adev->is_atom_bios = false;
403 } 403 }
404 404
405 DRM_DEBUG("%sBIOS detected\n", adev->is_atom_bios ? "ATOM" : "COM"); 405 DRM_DEBUG("ATOMBIOS detected\n");
406 return true; 406 return true;
407free_bios: 407free_bios:
408 kfree(adev->bios); 408 kfree(adev->bios);