Commit b44d7db3 authored by Kenji Kaneshige's avatar Kenji Kaneshige Committed by Jesse Barnes

PCIe AER: use pci_is_pcie()

Changes for PCIe AER driver to use pci_is_pcie() instead of checking
pci_dev->is_pcie.
Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 8b06477d
...@@ -281,7 +281,7 @@ static int pci_bus_set_aer_ops(struct pci_bus *bus) ...@@ -281,7 +281,7 @@ static int pci_bus_set_aer_ops(struct pci_bus *bus)
static struct pci_dev *pcie_find_root_port(struct pci_dev *dev) static struct pci_dev *pcie_find_root_port(struct pci_dev *dev)
{ {
while (1) { while (1) {
if (!dev->is_pcie) if (!pci_is_pcie(dev))
break; break;
if (dev->pcie_type == PCI_EXP_TYPE_ROOT_PORT) if (dev->pcie_type == PCI_EXP_TYPE_ROOT_PORT)
return dev; return dev;
......
...@@ -51,7 +51,7 @@ static int enable_ecrc_checking(struct pci_dev *dev) ...@@ -51,7 +51,7 @@ static int enable_ecrc_checking(struct pci_dev *dev)
int pos; int pos;
u32 reg32; u32 reg32;
if (!dev->is_pcie) if (!pci_is_pcie(dev))
return -ENODEV; return -ENODEV;
pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
...@@ -79,7 +79,7 @@ static int disable_ecrc_checking(struct pci_dev *dev) ...@@ -79,7 +79,7 @@ static int disable_ecrc_checking(struct pci_dev *dev)
int pos; int pos;
u32 reg32; u32 reg32;
if (!dev->is_pcie) if (!pci_is_pcie(dev))
return -ENODEV; return -ENODEV;
pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment