PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_type
authorYijing Wang <wangyijing@huawei.com>
Tue, 24 Jul 2012 09:20:03 +0000 (17:20 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Aug 2012 15:40:57 +0000 (09:40 -0600)
commit62f87c0e31d646d5501edf4f7feb07d0ad689d80
treef2aa208c10f6cf8b91634f91efda44efc6f4c25f
parent786e22885d9959fda0473ace5a61cb11620fba9b
PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_type

Introduce an inline function pci_pcie_type(dev) to extract PCIe
device type from pci_dev->pcie_flags_reg field, and prepare for
removing pci_dev->pcie_type.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
17 files changed:
arch/powerpc/platforms/powernv/pci-ioda.c
drivers/iommu/intel-iommu.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
drivers/pci/iov.c
drivers/pci/pci.c
drivers/pci/pcie/aer/aer_inject.c
drivers/pci/pcie/aer/aerdrv.c
drivers/pci/pcie/aer/aerdrv_acpi.c
drivers/pci/pcie/aer/aerdrv_core.c
drivers/pci/pcie/aspm.c
drivers/pci/pcie/pme.c
drivers/pci/pcie/portdrv_bus.c
drivers/pci/pcie/portdrv_core.c
drivers/pci/pcie/portdrv_pci.c
drivers/pci/probe.c
drivers/pci/search.c