提交 961d57c8 编写于 作者: M Miguel Botón 提交者: David S. Miller

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: NMiguel Botón <mboton@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 aa6c7ae2
...@@ -365,6 +365,13 @@ static inline void ssb_pcihost_unregister(struct pci_driver *driver) ...@@ -365,6 +365,13 @@ static inline void ssb_pcihost_unregister(struct pci_driver *driver)
{ {
pci_unregister_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 */ #endif /* CONFIG_SSB_PCIHOST */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册