Skip to content

Commit 6ebc5b9

Browse files
committed
drm/amdgpu/mmhub4.1: fix IP version check
Use the helper function rather than reading it directly. Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 63bfd24) Cc: [email protected]
1 parent 8c1ecc7 commit 6ebc5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ mmhub_v4_1_0_print_l2_protection_fault_status(struct amdgpu_device *adev,
108108
dev_err(adev->dev,
109109
"MMVM_L2_PROTECTION_FAULT_STATUS_LO32:0x%08X\n",
110110
status);
111-
switch (adev->ip_versions[MMHUB_HWIP][0]) {
111+
switch (amdgpu_ip_version(adev, MMHUB_HWIP, 0)) {
112112
case IP_VERSION(4, 1, 0):
113113
mmhub_cid = mmhub_client_ids_v4_1_0[cid][rw];
114114
break;

0 commit comments

Comments
 (0)