summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-23 23:46:53 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-24 14:34:48 -0800
commit52d21b5ef4bfc676944a3f214ac05c0406e3966f (patch)
tree8deb82b638d7aeeec8fb5b5b1b6e903c1d3a493c /drivers/pci
parent73e3b590f38fb7c03ee370430348edf1f401204e (diff)
downloadlinux-52d21b5ef4bfc676944a3f214ac05c0406e3966f.tar.gz
linux-52d21b5ef4bfc676944a3f214ac05c0406e3966f.tar.bz2
linux-52d21b5ef4bfc676944a3f214ac05c0406e3966f.zip
PCI: Use class for quirk for host bridge mmio_always_on
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/quirks.c6
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);
*/
static void __devinit quirk_mmio_always_on(struct pci_dev *dev)
{
- if ((dev->class >> 8) == PCI_CLASS_BRIDGE_HOST)
- dev->mmio_always_on = 1;
+ dev->mmio_always_on = 1;
}
-DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID, PCI_ANY_ID, quirk_mmio_always_on);
+DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_ANY_ID, PCI_ANY_ID,
+ PCI_CLASS_BRIDGE_HOST, 8, quirk_mmio_always_on);
/* The Mellanox Tavor device gives false positive parity errors
* Mark this device with a broken_parity_status, to allow