diff options
Diffstat (limited to 'include/linux/ssb/ssb.h')
-rw-r--r-- | include/linux/ssb/ssb.h | 7 |
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 | |||
369 | static inline | ||
370 | void 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 | ||