From: David Brownell Date: Thu, 15 Jan 2009 21:51:28 +0000 (-0800) Subject: drivers/usb/core/hub.c: fix CONFIG_USB_OTG=y build X-Git-Tag: v2.6.29-rc2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=634a84f8d5b74da497688d3346f6809c28239eda;p=profile%2Fivi%2Fkernel-x86-ivi.git drivers/usb/core/hub.c: fix CONFIG_USB_OTG=y build Carry out the PM-routine interface change in the USB OTG pathway. This was omitted from the earlier interface-change patch by mistake. Signed-off-by: Alan Stern Cc: Greg KH Cc: Russell King Cc: Felipe Balbi Cc: Tony Lindgren Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index d5d0e40..94d5ee2 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -1554,7 +1554,7 @@ static int usb_configure_device_otg(struct usb_device *udev) * (Includes HNP test device.) */ if (udev->bus->b_hnp_enable || udev->bus->is_b_host) { - err = usb_port_suspend(udev); + err = usb_port_suspend(udev, PMSG_SUSPEND); if (err < 0) dev_dbg(&udev->dev, "HNP fail, %d\n", err); }