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/portdrv_pci.c | |
parent | ef7942603e35e300e6967fa7c17ebc17a0c00f59 (diff) | |
download | linux-dcb0453d71e361d4718bb566d99e6ae498284419.tar.bz2 |
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/portdrv_pci.c')
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 9 |
1 files changed, 0 insertions, 9 deletions
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; |