Skip to content

Commit 8c1ecc7

Browse files
committed
drm/amdgpu/nbio7.11: 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 2c8eeaa) Cc: [email protected]
1 parent 458600d commit 8c1ecc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void nbio_v7_11_init_registers(struct amdgpu_device *adev)
275275
if (def != data)
276276
WREG32_SOC15(NBIO, 0, regBIF_BIF256_CI256_RC3X4_USB4_PCIE_MST_CTRL_3, data);
277277

278-
switch (adev->ip_versions[NBIO_HWIP][0]) {
278+
switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) {
279279
case IP_VERSION(7, 11, 0):
280280
case IP_VERSION(7, 11, 1):
281281
case IP_VERSION(7, 11, 2):

0 commit comments

Comments
 (0)