summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/portdrv_core.c
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2018-10-11 12:34:10 -0600
committerBjorn Helgaas <bhelgaas@google.com>2018-10-18 19:42:54 -0500
commit0e98db259fd8760fde556e640b447dadeceefc96 (patch)
treef862c1a7816fbca9cf2f865b072320fd1e24bbb4 /drivers/pci/pcie/portdrv_core.c
parent369fd7b00fce169570d6a74cb369e60dbfc95fb4 (diff)
downloadlinux-0e98db259fd8760fde556e640b447dadeceefc96.tar.gz
linux-0e98db259fd8760fde556e640b447dadeceefc96.tar.bz2
linux-0e98db259fd8760fde556e640b447dadeceefc96.zip
PCI/AER: Reuse existing pcie_port_find_device() interface
The port services driver already provides a method to find the pcie_device for a service. Export that function, use it from the aer_inject module, and remove the duplicate functionality. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie/portdrv_core.c')
-rw-r--r--drivers/pci/pcie/portdrv_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c
index 6542c48c7f59..f458ac9cb70c 100644
--- a/drivers/pci/pcie/portdrv_core.c
+++ b/drivers/pci/pcie/portdrv_core.c
@@ -486,6 +486,7 @@ struct device *pcie_port_find_device(struct pci_dev *dev,
device = pdrvs.dev;
return device;
}
+EXPORT_SYMBOL_GPL(pcie_port_find_device);
/**
* pcie_port_device_remove - unregister PCI Express port service devices