Skip to content

Commit

Permalink
ssb: add 'ssb_pcihost_set_power_state' function
Browse files Browse the repository at this point in the history
This patch adds the 'ssb_pcihost_set_power_state' function.

This function allows us to set the power state of a PCI device
(for example b44 ethernet device).

Signed-off-by: Miguel Botón <mboton@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Miguel Botón authored and David S. Miller committed Jan 28, 2008
1 parent aa6c7ae commit 961d57c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/ssb/ssb.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,13 @@ static inline void ssb_pcihost_unregister(struct pci_driver *driver)
{
pci_unregister_driver(driver);
}

static inline
void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state)
{
if (sdev->bus->bustype == SSB_BUSTYPE_PCI)
pci_set_power_state(sdev->bus->host_pci, state);
}
#endif /* CONFIG_SSB_PCIHOST */


Expand Down

0 comments on commit 961d57c

Please sign in to comment.