drm/amdgpu: Fix missing mca debugfs node
authorYang Wang <kevinyang.wang@amd.com>
Thu, 30 Nov 2023 04:58:14 +0000 (12:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Nov 2023 23:26:22 +0000 (18:26 -0500)
commit00f9d49bce844e8196e0c2ea298f9a41a11129d9
tree1b373db1433e5502b144b1f5ae717bb11a36b16f
parent04fcc3fec5dbd316b0b1fb2b9f8a39bfbe07af50
drm/amdgpu: Fix missing mca debugfs node

Use amdgpu_ip_version() helper function to check ip version.

The ip version contains other information,
use the helper function to avoid reading wrong value.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c