drm/amdgpu: use IP presence to free uvd and vce handles
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Sep 2018 18:51:25 +0000 (13:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Sep 2018 14:36:00 +0000 (09:36 -0500)
commit44876ae294dd7d7bcdfb527d12b86beb54cd013b
treebbe2074827d165851f5f6d3d3cf32b5b6b86dfe9
parenta06c3ee083b5c622bb9f4a687d7ab5265ee73dbf
drm/amdgpu: use IP presence to free uvd and vce handles

Rather than checking the asic type, check whether the UVD
or VCE IP blocks exist.  This way we don't have to update
the check with new asics that use VCN.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c