diff mbox

[11/12] PCIe AER: use pci_is_pcie()

Message ID 4AFA4D94.6090608@jp.fujitsu.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Kenji Kaneshige Nov. 11, 2009, 5:37 a.m. UTC
None
diff mbox

Patch

Index: 20091110/drivers/pci/pcie/aer/aer_inject.c
===================================================================
--- 20091110.orig/drivers/pci/pcie/aer/aer_inject.c
+++ 20091110/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;
Index: 20091110/drivers/pci/pcie/aer/ecrc.c
===================================================================
--- 20091110.orig/drivers/pci/pcie/aer/ecrc.c
+++ 20091110/drivers/pci/pcie/aer/ecrc.c
@@ -51,7 +51,7 @@  static int enable_ecrc_checking(struct p
 	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 
 	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);