summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie/aer/aer_inject.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-11-11 14:37:24 +0900
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-24 15:25:17 -0800
commitb44d7db36480a3b27e78141fc9d6597aa577744b (patch)
tree76780c8f3ed3644fafa3e8c38b8d5608bed83be3 /drivers/pci/pcie/aer/aer_inject.c
parent8b06477dc4fcdfc21442ad334d3f3e335225ea0c (diff)
downloadlwn-b44d7db36480a3b27e78141fc9d6597aa577744b.tar.gz
lwn-b44d7db36480a3b27e78141fc9d6597aa577744b.zip
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: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/aer/aer_inject.c')
-rw-r--r--drivers/pci/pcie/aer/aer_inject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c
index 2246bf7aee7e..7fcd5331b14c 100644
--- a/drivers/pci/pcie/aer/aer_inject.c
+++ b/drivers/pci/pcie/aer/aer_inject.c
@@ -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;