x86/PCI: quirks: Use pci_dev->revision
authortip-bot for Sergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 21 Jul 2011 10:11:42 +0000 (10:11 +0000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 22 Jul 2011 15:41:39 +0000 (08:41 -0700)
This code uses PCI_CLASS_REVISION instead of PCI_REVISION_ID, so
it wasn't converted by commit 44c10138fd4bbc ("PCI: Change all
drivers to use pci_device->revision") before being moved to arch/x86/...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Dave Jones <davej@redhat.com>
Link: http://lkml.kernel.org/r/201107111901.39281.sshtylyov@ru.mvista.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/kernel/quirks.c

index 8bbe8c56916d7c625bae67b60b3d25f8cd753e6c..b78643d0f9a53d8b2050a14f7e8185b540ed8595 100644 (file)
@@ -10,7 +10,7 @@
 
 static void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
 {
-       u8 config, rev;
+       u8 config;
        u16 word;
 
        /* BIOS may enable hardware IRQ balancing for
@@ -18,8 +18,7 @@ static void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
         * based platforms.
         * Disable SW irqbalance/affinity on those platforms.
         */
-       pci_read_config_byte(dev, PCI_CLASS_REVISION, &rev);
-       if (rev > 0x9)
+       if (dev->revision > 0x9)
                return;
 
        /* enable access to config space*/