drm/amdgpu/apci: don't call sbios request function if it's not supported
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jul 2018 14:17:02 +0000 (09:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Jul 2018 19:24:35 +0000 (14:24 -0500)
commit9e7204beae8cbb75939acd640829e10979f2c920
tree6f0d3a9f54ac74713dc8abeef62d4a6f57c06915
parent7766484b4a18373ac557ce6ea442ef28517c8224
drm/amdgpu/apci: don't call sbios request function if it's not supported

Check the supported functions mask before calling the bios
requests method.

Reviewed-by: Jim Qu <Jim.Qu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c