aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/quirks.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-24 02:46:54 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-24 17:35:13 -0500
commitae9de56bdda2d27d11df8d2dcde81f429ac348ee (patch)
tree9e8713fdbc4dc0c2b4dad4d06006b82b85432921 /drivers/pci/quirks.c
parent52d21b5ef4bfc676944a3f214ac05c0406e3966f (diff)
PCI: Use class for quirk for cardbus_legacy
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r--drivers/pci/quirks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 007abec4328..f41e00d6f2c 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1004,12 +1004,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_vt
1004 */ 1004 */
1005static void quirk_cardbus_legacy(struct pci_dev *dev) 1005static void quirk_cardbus_legacy(struct pci_dev *dev)
1006{ 1006{
1007 if ((PCI_CLASS_BRIDGE_CARDBUS << 8) ^ dev->class)
1008 return;
1009 pci_write_config_dword(dev, PCI_CB_LEGACY_MODE_BASE, 0); 1007 pci_write_config_dword(dev, PCI_CB_LEGACY_MODE_BASE, 0);
1010} 1008}
1011DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, quirk_cardbus_legacy); 1009DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
1012DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_ANY_ID, PCI_ANY_ID, quirk_cardbus_legacy); 1010 PCI_CLASS_BRIDGE_CARDBUS, 8, quirk_cardbus_legacy);
1011DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY(PCI_ANY_ID, PCI_ANY_ID,
1012 PCI_CLASS_BRIDGE_CARDBUS, 8, quirk_cardbus_legacy);
1013 1013
1014/* 1014/*
1015 * Following the PCI ordering rules is optional on the AMD762. I'm not 1015 * Following the PCI ordering rules is optional on the AMD762. I'm not