drm/amdgpu: cleanup HW_IP query
authorChristian König <christian.koenig@amd.com>
Wed, 1 Aug 2018 11:52:25 +0000 (13:52 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:10 +0000 (11:11 -0500)
commita245daf3d7a143fb2df16485ad200aa3298eac8c
tree524f3acbfa3b563f260ba06003954a8db6084eae
parent62347a33001c27b22465361aa4adcaa432497bdf
drm/amdgpu: cleanup HW_IP query

Move the code into a separate function.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c