PCIe AER: use pci_is_pcie()
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 11 Nov 2009 05:37:24 +0000 (14:37 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 24 Nov 2009 23:25:17 +0000 (15:25 -0800)
Changes for PCIe AER driver to use pci_is_pcie() instead of checking
pci_dev->is_pcie.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aer_inject.c
drivers/pci/pcie/aer/ecrc.c

index 2246bf7aee7ed8a741769426451ee146314d622a..7fcd5331b14c37fdbbe4662e80afdf393191dcb8 100644 (file)
@@ -281,7 +281,7 @@ out:
 static struct pci_dev *pcie_find_root_port(struct pci_dev *dev)
 {
        while (1) {
-               if (!dev->is_pcie)
+               if (!pci_is_pcie(dev))
                        break;
                if (dev->pcie_type == PCI_EXP_TYPE_ROOT_PORT)
                        return dev;
index a928d8ab6bda2a95f3fce746617778c53163585d..a2747a663bc9bf9dc8dfa34ca1efc1f922701ef5 100644 (file)
@@ -51,7 +51,7 @@ static int enable_ecrc_checking(struct pci_dev *dev)
        int pos;
        u32 reg32;
 
-       if (!dev->is_pcie)
+       if (!pci_is_pcie(dev))
                return -ENODEV;
 
        pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
@@ -79,7 +79,7 @@ static int disable_ecrc_checking(struct pci_dev *dev)
        int pos;
        u32 reg32;
 
-       if (!dev->is_pcie)
+       if (!pci_is_pcie(dev))
                return -ENODEV;
 
        pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);