drm/amdgpu: also track late init state
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 2 Oct 2016 21:06:44 +0000 (00:06 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2016 16:39:02 +0000 (12:39 -0400)
commit8a2eef1dbc85273c57d6f2cf73e5d7c97b1a25f4
treec813f3f53744b313125d45b07e7a82716b88020f
parent8cb619d82ef9668cb820311904391bc493872b67
drm/amdgpu: also track late init state

Successful sw_init() and hw_init() states are tracked, but not
late_init(). Various error paths may result in amdgpu_fini() being
called before .late init is done, so late_init needs to be tracked
to avoid unexpected or multiple .late_fini() calls.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c