提交 38175051 编写于 作者: S Sergei Shtylyov 提交者: Ingo Molnar

x86, quirks: Use pci_dev->revision

This code uses PCI_CLASS_REVISION instead of PCI_REVISION_ID, so
it wasn't converted by commit 44c10138 ("PCI: Change all
drivers to use pci_device->revision") before being moved to arch/x86/...
Signed-off-by: NSergei 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.comSigned-off-by: NIngo Molnar <mingo@elte.hu>
上级 cf6ace16
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
static void __devinit quirk_intel_irqbalance(struct pci_dev *dev) static void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
{ {
u8 config, rev; u8 config;
u16 word; u16 word;
/* BIOS may enable hardware IRQ balancing for /* BIOS may enable hardware IRQ balancing for
...@@ -18,8 +18,7 @@ static void __devinit quirk_intel_irqbalance(struct pci_dev *dev) ...@@ -18,8 +18,7 @@ static void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
* based platforms. * based platforms.
* Disable SW irqbalance/affinity on those platforms. * Disable SW irqbalance/affinity on those platforms.
*/ */
pci_read_config_byte(dev, PCI_CLASS_REVISION, &rev); if (dev->revision > 0x9)
if (rev > 0x9)
return; return;
/* enable access to config space*/ /* enable access to config space*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册