drm/amdgpu: clean up init sequence for failures
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jul 2015 15:50:31 +0000 (11:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jul 2015 19:50:36 +0000 (15:50 -0400)
commit8faf0e08d5a78ae5f1752b1d69f97ed70afa625f
tree7332edf65919a1630666c3eb8e2406f932646210
parent0a90a0cff9f429f886f423967ae053150dce9259
drm/amdgpu: clean up init sequence for failures

If we fail during device init, record what state each
block is in so that we can tear down clearly.

Fixes various problems on device init failure.

Reviewed-by: Christian König <christian.koenig@amd.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
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c