drm/amdgpu: clean up discovery testing
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2020 21:06:59 +0000 (17:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 May 2020 17:55:07 +0000 (13:55 -0400)
commit4292b0b2026bc10bced32636ea02dd8eed00cea9
treeb24ff03c9bbc399c2e65ab77394a805714ebf57f
parent258620d0b36f5aae7f32099f05817206bd4ae0d1
drm/amdgpu: clean up discovery testing

Rather than checking of the variable is enabled and the
chip is the right family check for the presence of the
discovery table.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c