Skip to content

Commit

Permalink
x86, quirks: Use pci_dev->revision
Browse files Browse the repository at this point in the history
This code uses PCI_CLASS_REVISION instead of PCI_REVISION_ID, so
it wasn't converted by commit 44c1013 ("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: Jesse Barnes <jbarnes@virtuousgeek.org>
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>
  • Loading branch information
Sergei Shtylyov authored and Ingo Molnar committed Jul 21, 2011
1 parent cf6ace1 commit 3817505
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/x86/kernel/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@

static void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
{
u8 config, rev;
u8 config;
u16 word;

/* BIOS may enable hardware IRQ balancing for
* E7520/E7320/E7525(revision ID 0x9 and below)
* 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*/
Expand Down

0 comments on commit 3817505

Please sign in to comment.