USB: remove __usb_port_suspend
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 30 May 2007 20:51:28 +0000 (16:51 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:29 +0000 (16:34 -0700)
commit4956eccdd6101c5abb71966079e8183d12796d6c
treed8610e3675719818e78e967ea920c4e9c8fc7ba5
parentd576bb9f2769b315a795f77f0c33322a976add7a
USB: remove __usb_port_suspend

This patch (as915b) combines the public routine usb_port_suspend() and
the private routine __usb_port_suspend() into a single function.

By removing the explicit mention of otg_port in the call to
__usb_port_suspend(), we prevent a possible error in which the system
tries to perform HNP on the wrong port when a non-targeted device is
plugged into a non-OTG port.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c
drivers/usb/core/usb.h