PCI: Make pcie_downstream_port() available outside of access.c
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 22 Aug 2019 08:55:52 +0000 (11:55 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 7 Sep 2019 12:45:25 +0000 (07:45 -0500)
commit984998e3404e9073479281dbba8af36b104e8c00
tree5eeab9ebd558a68defff4737d53ca74076d6c6fb
parent4a2dbeddd3d54484d2e9c12965e4f9bfa1a0ee36
PCI: Make pcie_downstream_port() available outside of access.c

pcie_downstream_port() is useful in other places where code needs to
determine whether the PCIe port is downstream so make it available outside
of access.c.

Link: https://lore.kernel.org/r/20190822085553.62697-1-mika.westerberg@linux.intel.com
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pci/access.c
drivers/pci/pci.h