Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/mmhub4.1: fix IP version check

Use the helper function rather than reading it directly.

Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c
··· 108 108 dev_err(adev->dev, 109 109 "MMVM_L2_PROTECTION_FAULT_STATUS_LO32:0x%08X\n", 110 110 status); 111 - switch (adev->ip_versions[MMHUB_HWIP][0]) { 111 + switch (amdgpu_ip_version(adev, MMHUB_HWIP, 0)) { 112 112 case IP_VERSION(4, 1, 0): 113 113 mmhub_cid = mmhub_client_ids_v4_1_0[cid][rw]; 114 114 break;