summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-dma.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-23 23:46:50 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-24 14:34:43 -0800
commitc484b2418b0b5bb7b16f01343330650faee60df2 (patch)
treea5d5465034b5276cf0fdcc52f16c4af49d3ee497 /arch/x86/kernel/pci-dma.c
parentf4ca5c6a56278ca5421bc2e40422e4155b6735d8 (diff)
downloadlinux-stable-c484b2418b0b5bb7b16f01343330650faee60df2.tar.gz
linux-stable-c484b2418b0b5bb7b16f01343330650faee60df2.tar.bz2
linux-stable-c484b2418b0b5bb7b16f01343330650faee60df2.zip
PCI: Use class for quirk for via_no_dac
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/kernel/pci-dma.c')
-rw-r--r--arch/x86/kernel/pci-dma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 1c4d769e21ea..28e5e06fcba4 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -262,10 +262,11 @@ rootfs_initcall(pci_iommu_init);
static __devinit void via_no_dac(struct pci_dev *dev)
{
- if ((dev->class >> 8) == PCI_CLASS_BRIDGE_PCI && forbid_dac == 0) {
+ if (forbid_dac == 0) {
dev_info(&dev->dev, "disabling DAC on VIA PCI bridge\n");
forbid_dac = 1;
}
}
-DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_ANY_ID, via_no_dac);
+DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_VIA, PCI_ANY_ID,
+ PCI_CLASS_BRIDGE_PCI, 8, via_no_dac);
#endif