]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI/AER: use pci_is_pcie() instead of obsolete pci_dev.is_pcie
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 18 May 2012 22:52:40 +0000 (16:52 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Jun 2012 17:23:43 +0000 (11:23 -0600)
Use pci_is_pcie() instead of looking at obsolete is_pcie field in
struct pci_dev.

CC: Huang Ying <ying.huang@intel.com>
CC: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_acpi.c

index 275bf158ffa7184978e33fb23124888e25570cc2..124f20ff11b2c9b9dc61c94f92cb59bdf61890ba 100644 (file)
@@ -59,7 +59,7 @@ static int aer_hest_parse(struct acpi_hest_header *hest_hdr, void *data)
 
        p = (struct acpi_hest_aer_common *)(hest_hdr + 1);
        if (p->flags & ACPI_HEST_GLOBAL) {
-               if ((info->pci_dev->is_pcie &&
+               if ((pci_is_pcie(info->pci_dev) &&
                     info->pci_dev->pcie_type == pcie_type) || bridge)
                        ff = !!(p->flags & ACPI_HEST_FIRMWARE_FIRST);
        } else