drm/radeon: restore the fbdev mode in lastclose
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Oct 2015 20:52:58 +0000 (16:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2015 13:44:18 +0000 (09:44 -0400)
commit8c70e1cda04b966b50ddfefafbd0ea376ed8edd5
tree0195f9f7dac3b76941432feb2b857a5f9e32e715
parent2b02ec79004388a8c65e227bc289ed891b5ac8c6
drm/radeon: restore the fbdev mode in lastclose

restore the fbdev state if a drm app like X is killed.

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/radeon/radeon_kms.c
drivers/gpu/drm/radeon/radeon_mode.h