]> git.baikalelectronics.ru Git - kernel.git/commit
vga-switcheroo: Use vga_default_device()
authorMatthew Garrett <mjg@redhat.com>
Mon, 16 Apr 2012 20:26:03 +0000 (16:26 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Apr 2012 08:50:16 +0000 (09:50 +0100)
commitdd7c46ac56208e279c424f4a2622932dc6a01d1e
tree262a6f5783ec3a91a5c7d51a63383a99965f2697
parentd8a6d1f854ac02c3c43ffc3f4009decd295deb84
vga-switcheroo: Use vga_default_device()

vga-switcheroo currently changes the default VGA device by fiddling with
the IORESOURCE_ROM_SHADOW flag on the device. This isn't strictly accurate,
since there's no guarantee that switching also changes the ROM decoding.
Switch over to using the vgaarb functions for this.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/vga/vga_switcheroo.c