drm/amdgpu: Add vbios attribute only if supported
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 15 Jun 2023 08:43:23 +0000 (14:13 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jun 2023 19:35:26 +0000 (15:35 -0400)
commit184d83848242b2465b466a0a8e6eb58f1df10407
tree083bd1a399fd3a742206d3ebaf8db891d7bf3b7d
parentc09b3bf7363db982b17950b8e4f27b0564817301
drm/amdgpu: Add vbios attribute only if supported

Not all devices carry VBIOS version information. Add the device
attribute only if supported.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c