Skip to content

Commit 3abb660

Browse files
committed
drm/amdgpu/nbio7.0: 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 0ec43fb) Cc: [email protected]
1 parent a7f9d98 commit 3abb660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static void nbio_v7_0_init_registers(struct amdgpu_device *adev)
278278
{
279279
uint32_t data;
280280

281-
switch (adev->ip_versions[NBIO_HWIP][0]) {
281+
switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) {
282282
case IP_VERSION(2, 5, 0):
283283
data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4) & ~BIT(23);
284284
WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4, data);

0 commit comments

Comments
 (0)