drm/amd/amdgpu: skip locking delayed work if not initialized.
authorYuBiao Wang <YuBiao.Wang@amd.com>
Thu, 5 Aug 2021 02:32:40 +0000 (10:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Aug 2021 19:42:30 +0000 (15:42 -0400)
commite78b3197dbf73fc0695dd019e388576d0a551830
tree8f735ef238571db9f3e290828f7b538e1e244394
parent124e8b1990ac6f01bb7affb0590e322aa462c1c3
drm/amd/amdgpu: skip locking delayed work if not initialized.

When init failed in early init stage, amdgpu_object has
not been initialized, so hasn't the ttm delayed queue functions.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Emily.Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c