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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changes for PCIe AER driver to use pci_is_pcie() instead of checking
pci_dev->is_pcie.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@xxxxxxxxxxxxxx>

---
 drivers/pci/pcie/aer/aer_inject.c |    2 +-
 drivers/pci/pcie/aer/ecrc.c       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

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);

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux