|
@@ -800,7 +800,7 @@ static int pci_wakeup(struct pci_dev *pci_dev, void *ign)
|
|
* pci_wakeup_bus - Walk given bus and wake up devices on it
|
|
* pci_wakeup_bus - Walk given bus and wake up devices on it
|
|
* @bus: Top bus of the subtree to walk.
|
|
* @bus: Top bus of the subtree to walk.
|
|
*/
|
|
*/
|
|
-static void pci_wakeup_bus(struct pci_bus *bus)
|
|
|
|
|
|
+void pci_wakeup_bus(struct pci_bus *bus)
|
|
{
|
|
{
|
|
if (bus)
|
|
if (bus)
|
|
pci_walk_bus(bus, pci_wakeup, NULL);
|
|
pci_walk_bus(bus, pci_wakeup, NULL);
|
|
@@ -850,11 +850,11 @@ static int __pci_dev_set_current_state(struct pci_dev *dev, void *data)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * __pci_bus_set_current_state - Walk given bus and set current state of devices
|
|
|
|
|
|
+ * pci_bus_set_current_state - Walk given bus and set current state of devices
|
|
* @bus: Top bus of the subtree to walk.
|
|
* @bus: Top bus of the subtree to walk.
|
|
* @state: state to be set
|
|
* @state: state to be set
|
|
*/
|
|
*/
|
|
-static void __pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state)
|
|
|
|
|
|
+void pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state)
|
|
{
|
|
{
|
|
if (bus)
|
|
if (bus)
|
|
pci_walk_bus(bus, __pci_dev_set_current_state, &state);
|
|
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)
|
|
ret = pci_platform_power_transition(dev, state);
|
|
ret = pci_platform_power_transition(dev, state);
|
|
/* Power off the bridge may power off the whole hierarchy */
|
|
/* Power off the bridge may power off the whole hierarchy */
|
|
if (!ret && state == PCI_D3cold)
|
|
if (!ret && state == PCI_D3cold)
|
|
- __pci_bus_set_current_state(dev->subordinate, PCI_D3cold);
|
|
|
|
|
|
+ pci_bus_set_current_state(dev->subordinate, PCI_D3cold);
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(__pci_complete_power_transition);
|
|
EXPORT_SYMBOL_GPL(__pci_complete_power_transition);
|