PCI/PM: Avoid exporting __pci_complete_power_transition()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Nov 2019 10:30:36 +0000 (11:30 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Nov 2019 23:35:52 +0000 (17:35 -0600)
commitd6aa37cd04fdafaf31ae89691e537535df43ca78
tree4457ab196a98644672a525353aed955edbc9db3d
parentdc2256b0735d03664a92a6cb94ea4e564dfa237b
PCI/PM: Avoid exporting __pci_complete_power_transition()

Notice that radeon_set_suspend(), which is the only caller of
__pci_complete_power_transition() outside of pci.c, really only
cares about the pci_platform_power_transition() invoked by it,
so export the latter instead of it, update the radeon driver to
call pci_platform_power_transition() directly and make
__pci_complete_power_transition() static.

Code rearrangement, no intentional functional impact.

Link: https://lore.kernel.org/r/1731661.ykamz2Tiuf@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pci.c
drivers/video/fbdev/aty/radeon_pm.c
include/linux/pci.h