drm/amdgpu: check mmhub_funcs pointer before refering to it
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 31 Aug 2019 05:18:40 +0000 (13:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:36:16 +0000 (17:36 -0500)
commit4ce71be67b08d00729f4d8735e2b76d8b5882d2c
treed12a4e737e43458aba891f3e1d8ab4b8cd26aaf6
parent17da41bf00c849d809cb3cc5eebc43a1924736fd
drm/amdgpu: check mmhub_funcs pointer before refering to it

mmhub callback functions are not initialized for all the ASICs

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c