drm/amd/pm: fix NULL pointer issue of amdgpu_smu_stb_debug_fs_init
authorLikun Gao <Likun.Gao@amd.com>
Wed, 12 Jan 2022 07:38:24 +0000 (15:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:57:42 +0000 (09:57 -0400)
commit6f3c9dbb65be3d90eee1b90e270c4e62b15a91b3
treea7c45974f25ad35c7fd10412e5992810671ca533
parent64440743e89629231fee712879d7a9d5ec7dfb8c
drm/amd/pm: fix NULL pointer issue of amdgpu_smu_stb_debug_fs_init

Fix NULL pointer issue on amdgpu_smu_stb_debug_fs_init if SMU block not
enabled.

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/pm/swsmu/amdgpu_smu.c