]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Use vga_default_device() when determining whether an fb is primary
authorMatthew Garrett <mjg@redhat.com>
Mon, 16 Apr 2012 20:26:04 +0000 (16:26 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Apr 2012 08:50:17 +0000 (09:50 +0100)
commit166f1ee9f81e0dd5331ee8b2b027c5912bea171a
tree6a77b0d946017cb7e8765bf993495499828bf032
parentdd7c46ac56208e279c424f4a2622932dc6a01d1e
x86: Use vga_default_device() when determining whether an fb is primary

IORESOURCE_ROM_SHADOW is not necessarily an indication that the hardware
is the primary device. Add support for using the vgaarb functions and
fall back if nothing's set them.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: mingo@redhat.com
Acked-by: hpa@zytor.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
arch/x86/video/fbdev.c