drm/amdgpu/sdma4: use num_instances for clock/powergating config
authorAlex Deucher <[email protected]>
Fri, 1 Sep 2017 20:47:54 +0000 (16:47 -0400)
committerAlex Deucher <[email protected]>
Wed, 14 Mar 2018 21:01:18 +0000 (16:01 -0500)
commitfcb7d51571e6ab542e3e6e84ae29c8f541460ca8
treef0dc598b6da50bc753d7690fe6c058eaf67fdad5
parentda42960918b4985abd1891c2f60d774706b58061
drm/amdgpu/sdma4: use num_instances for clock/powergating config

Rather then relying on the asic type for the second instance.
Makes it more consistent with the rest of the code.

Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c