aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMiguel Botón <mboton.lkml@gmail.com>2007-12-31 19:16:46 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:18 -0500
commit961d57c883198831503c7be5c088a26101dfb16c (patch)
tree73904fd7e7caa9185859b2332a014eb68b5a0825 /include/linux
parentaa6c7ae21d079f25420e436092e5461001ec29d7 (diff)
ssb: add 'ssb_pcihost_set_power_state' function
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ssb/ssb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb.h b/include/linux/ssb/ssb.h
index cacbae531945..1ab4688c678b 100644
--- a/include/linux/ssb/ssb.h
+++ b/include/linux/ssb/ssb.h
@@ -365,6 +365,13 @@ static inline void ssb_pcihost_unregister(struct pci_driver *driver)
365{ 365{
366 pci_unregister_driver(driver); 366 pci_unregister_driver(driver);
367} 367}
368
369static inline
370void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state)
371{
372 if (sdev->bus->bustype == SSB_BUSTYPE_PCI)
373 pci_set_power_state(sdev->bus->host_pci, state);
374}
368#endif /* CONFIG_SSB_PCIHOST */ 375#endif /* CONFIG_SSB_PCIHOST */
369 376
370 377