diff options
-rw-r--r-- | drivers/pci/quirks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 2b4b1ea158cf..007abec4328f 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -102,10 +102,10 @@ DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, quirk_resource_alignment); | |||
102 | */ | 102 | */ |
103 | static void __devinit quirk_mmio_always_on(struct pci_dev *dev) | 103 | static void __devinit quirk_mmio_always_on(struct pci_dev *dev) |
104 | { | 104 | { |
105 | if ((dev->class >> 8) == PCI_CLASS_BRIDGE_HOST) | 105 | dev->mmio_always_on = 1; |
106 | dev->mmio_always_on = 1; | ||
107 | } | 106 | } |
108 | DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID, PCI_ANY_ID, quirk_mmio_always_on); | 107 | DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_ANY_ID, PCI_ANY_ID, |
108 | PCI_CLASS_BRIDGE_HOST, 8, quirk_mmio_always_on); | ||
109 | 109 | ||
110 | /* The Mellanox Tavor device gives false positive parity errors | 110 | /* The Mellanox Tavor device gives false positive parity errors |
111 | * Mark this device with a broken_parity_status, to allow | 111 | * Mark this device with a broken_parity_status, to allow |