aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index f6a4dd10d9b0..bd6f156dc3cf 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -800,7 +800,7 @@ static int pci_wakeup(struct pci_dev *pci_dev, void *ign)
800 * pci_wakeup_bus - Walk given bus and wake up devices on it 800 * pci_wakeup_bus - Walk given bus and wake up devices on it
801 * @bus: Top bus of the subtree to walk. 801 * @bus: Top bus of the subtree to walk.
802 */ 802 */
803static void pci_wakeup_bus(struct pci_bus *bus) 803void pci_wakeup_bus(struct pci_bus *bus)
804{ 804{
805 if (bus) 805 if (bus)
806 pci_walk_bus(bus, pci_wakeup, NULL); 806 pci_walk_bus(bus, pci_wakeup, NULL);
@@ -850,11 +850,11 @@ static int __pci_dev_set_current_state(struct pci_dev *dev, void *data)
850} 850}
851 851
852/** 852/**
853 * __pci_bus_set_current_state - Walk given bus and set current state of devices 853 * pci_bus_set_current_state - Walk given bus and set current state of devices
854 * @bus: Top bus of the subtree to walk. 854 * @bus: Top bus of the subtree to walk.
855 * @state: state to be set 855 * @state: state to be set
856 */ 856 */
857static void __pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state) 857void pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state)
858{ 858{
859 if (bus) 859 if (bus)
860 pci_walk_bus(bus, __pci_dev_set_current_state, &state); 860 pci_walk_bus(bus, __pci_dev_set_current_state, &state);
@@ -876,7 +876,7 @@ int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state)
876 ret = pci_platform_power_transition(dev, state); 876 ret = pci_platform_power_transition(dev, state);
877 /* Power off the bridge may power off the whole hierarchy */ 877 /* Power off the bridge may power off the whole hierarchy */
878 if (!ret && state == PCI_D3cold) 878 if (!ret && state == PCI_D3cold)
879 __pci_bus_set_current_state(dev->subordinate, PCI_D3cold); 879 pci_bus_set_current_state(dev->subordinate, PCI_D3cold);
880 return ret; 880 return ret;
881} 881}
882EXPORT_SYMBOL_GPL(__pci_complete_power_transition); 882EXPORT_SYMBOL_GPL(__pci_complete_power_transition);