diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-03-09 11:06:53 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-03-12 09:15:39 -0500 |
commit | dcb0453d71e361d4718bb566d99e6ae498284419 (patch) | |
tree | 2bcbd1552a80d82d3588d56595e7ca09c872b6d7 /drivers/pci/pcie | |
parent | ef7942603e35e300e6967fa7c17ebc17a0c00f59 (diff) | |
download | linux-stable-dcb0453d71e361d4718bb566d99e6ae498284419.tar.gz linux-stable-dcb0453d71e361d4718bb566d99e6ae498284419.tar.bz2 linux-stable-dcb0453d71e361d4718bb566d99e6ae498284419.zip |
PCI/PM: Move pcie_clear_root_pme_status() to core
Move pcie_clear_root_pme_status() from the port driver to the PCI core so
it will be available even when the port driver isn't present. No
functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/portdrv.h | 2 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h index d4009e35702c..7086086e45d0 100644 --- a/drivers/pci/pcie/portdrv.h +++ b/drivers/pci/pcie/portdrv.h @@ -93,8 +93,6 @@ void pcie_port_bus_unregister(void); struct pci_dev; -void pcie_clear_root_pme_status(struct pci_dev *dev); - #ifdef CONFIG_HOTPLUG_PCI_PCIE extern bool pciehp_msi_disabled; diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 977bd3cca2e5..d6f10a97d400 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -49,15 +49,6 @@ __setup("pcie_ports=", pcie_port_setup); /* global data */ -/** - * pcie_clear_root_pme_status - Clear root port PME interrupt status. - * @dev: PCIe root port or event collector. - */ -void pcie_clear_root_pme_status(struct pci_dev *dev) -{ - pcie_capability_set_dword(dev, PCI_EXP_RTSTA, PCI_EXP_RTSTA_PME); -} - static int pcie_portdrv_restore_config(struct pci_dev *dev) { int retval; |