Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <stern@rowland.harvard.edu>
Cc: Greg KH <greg@kroah.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Brownell and committed by
Linus Torvalds
634a84f8 00bfddaf

+1 -1
+1 -1
drivers/usb/core/hub.c
··· 1554 1554 * (Includes HNP test device.) 1555 1555 */ 1556 1556 if (udev->bus->b_hnp_enable || udev->bus->is_b_host) { 1557 - err = usb_port_suspend(udev); 1557 + err = usb_port_suspend(udev, PMSG_SUSPEND); 1558 1558 if (err < 0) 1559 1559 dev_dbg(&udev->dev, "HNP fail, %d\n", err); 1560 1560 }