]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: only init fbdev if we have connectors
authorRob Clark <robdclark@gmail.com>
Mon, 25 Jan 2016 23:06:48 +0000 (18:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Jan 2016 05:35:49 +0000 (00:35 -0500)
commita13d6bc2f23e11b20829a830a4b92e3614176792
tree5c61dd84f3cc6a1465ac0b983dd49a1868d62f55
parent4e212efb2266661cb5a98d836c89e8d3e44d44a2
drm/radeon: only init fbdev if we have connectors

This fixes an issue that was noticed on an optimus/prime laptop with
a kernel that was old enough to not support the integrated intel gfx
(which was driving all the outputs), but did have support for the
discrete radeon gpu.  The end result was not falling back to VESA and
leaving the user with a black screen.

(Plus it is kind of silly to create an framebuffer device if there
are no outputs hooked up to the gpu.)

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_display.c