diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2013-01-22 15:26:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 13:07:59 -0500 |
commit | 88bb965ed711e8a5984e70208ebc901a6ff4141f (patch) | |
tree | fa02381576bc90a91ffc8f62c6a4e7261f641a3a /drivers/usb/core/usb.h | |
parent | 8eae0fb7efa99d55afa9e94ce95d101af0830ca6 (diff) |
usb: Register usb port's acpi power resources
This patch is to register usb port's acpi power resources. Create
link between usb port device and its acpi power resource.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/usb.h')
-rw-r--r-- | drivers/usb/core/usb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index a7f20bde0e5e..601b044f90f0 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h | |||
@@ -191,7 +191,13 @@ extern int usb_acpi_register(void); | |||
191 | extern void usb_acpi_unregister(void); | 191 | extern void usb_acpi_unregister(void); |
192 | extern acpi_handle usb_get_hub_port_acpi_handle(struct usb_device *hdev, | 192 | extern acpi_handle usb_get_hub_port_acpi_handle(struct usb_device *hdev, |
193 | int port1); | 193 | int port1); |
194 | extern int usb_acpi_register_power_resources(struct device *dev); | ||
195 | extern void usb_acpi_unregister_power_resources(struct device *dev); | ||
194 | #else | 196 | #else |
195 | static inline int usb_acpi_register(void) { return 0; }; | 197 | static inline int usb_acpi_register(void) { return 0; }; |
196 | static inline void usb_acpi_unregister(void) { }; | 198 | static inline void usb_acpi_unregister(void) { }; |
199 | static inline int usb_acpi_register_power_resources(struct device *dev) | ||
200 | { return 0; }; | ||
201 | static inline void usb_acpi_unregister_power_resources(struct device *dev) | ||
202 | { }; | ||
197 | #endif | 203 | #endif |