mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 18:54:09 +08:00
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>
This commit is contained in:
parent
f4ca5c6a56
commit
c484b2418b
@ -262,10 +262,11 @@ rootfs_initcall(pci_iommu_init);
|
|||||||
|
|
||||||
static __devinit void via_no_dac(struct pci_dev *dev)
|
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");
|
dev_info(&dev->dev, "disabling DAC on VIA PCI bridge\n");
|
||||||
forbid_dac = 1;
|
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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user