]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
PCI: Use class for quirk for pci_fixup_video
authorYinghai Lu <yinghai@kernel.org>
Fri, 24 Feb 2012 07:46:52 +0000 (23:46 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 24 Feb 2012 22:34:46 +0000 (14:34 -0800)
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/pci/fixup.c

index 24172ffd795b67403ec6d94caadbcc40aafa5d0d..d0e6e403b4f671d0ba3b9b1456fcc8d68c3ff24b 100644 (file)
@@ -322,9 +322,6 @@ static void __devinit pci_fixup_video(struct pci_dev *pdev)
        struct pci_bus *bus;
        u16 config;
 
-       if ((pdev->class >> 8) != PCI_CLASS_DISPLAY_VGA)
-               return;
-
        /* Is VGA routed to us? */
        bus = pdev->bus;
        while (bus) {
@@ -353,7 +350,8 @@ static void __devinit pci_fixup_video(struct pci_dev *pdev)
                dev_printk(KERN_DEBUG, &pdev->dev, "Boot video device\n");
        }
 }
-DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_video);
+DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
+                               PCI_CLASS_DISPLAY_VGA, 8, pci_fixup_video);
 
 
 static const struct dmi_system_id __devinitconst msi_k8t_dmi_table[] = {