drm/amdgpu: fix vga_set_state NULL pointer issue
authorLikun Gao <Likun.Gao@amd.com>
Fri, 19 May 2023 08:01:57 +0000 (16:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:41:40 +0000 (10:41 -0400)
commitb336c681bdb5d1814acf8f19d1225a93f36ddfa2
treeb277628330f468b1a0c79d510ee0c72f0afd07ba
parentd7b8e68dc04ad89809832bebe9ab5d7965a6eef5
drm/amdgpu: fix vga_set_state NULL pointer issue

Fix NULL pointer issue for vga_set_state function
as not all the ASIC need this operation.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h