x86/vga: set the default device from the fixup.
authorDave Airlie <airlied@redhat.com>
Mon, 14 May 2012 16:00:40 +0000 (17:00 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 16 May 2012 09:22:16 +0000 (10:22 +0100)
commit6cf20beec4b91c240cf759b4db72669e251f1fc4
tree9a856d630cad0885f697de8d5b118aa94c7b69a7
parentf3b7e17c4bdc0b6675729ece8dd55ed94785f744
x86/vga: set the default device from the fixup.

Since Matthew's efi/vga changes on non-EFI machines we were failing
to tell the vgaarb/switcheroo what the default device was, this
sets the default device in the quirk if none has been set before.

This fixes the switcheroo on my T410s.

Cc: Matthew Garrett <mjg@redhat.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
arch/x86/pci/fixup.c