USB: ehci-hcd: Add get_resuming_ports method
This patch adds support for the new get_resuming_ports HCD method to the ehci-hcd driver. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
379cacc5e5
commit
00d423c8d0
@@ -512,10 +512,18 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
|
||||
return -ESHUTDOWN;
|
||||
}
|
||||
|
||||
static unsigned long ehci_get_resuming_ports(struct usb_hcd *hcd)
|
||||
{
|
||||
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
|
||||
|
||||
return ehci->resuming_ports;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define ehci_bus_suspend NULL
|
||||
#define ehci_bus_resume NULL
|
||||
#define ehci_get_resuming_ports NULL
|
||||
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
|
Reference in New Issue
Block a user