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

drm/amdgpu/nbio7.11: 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/nbio_v7_11.c
··· 275 275 if (def != data) 276 276 WREG32_SOC15(NBIO, 0, regBIF_BIF256_CI256_RC3X4_USB4_PCIE_MST_CTRL_3, data); 277 277 278 - switch (adev->ip_versions[NBIO_HWIP][0]) { 278 + switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) { 279 279 case IP_VERSION(7, 11, 0): 280 280 case IP_VERSION(7, 11, 1): 281 281 case IP_VERSION(7, 11, 2):