diff options
author | Hema HK <hemahk@ti.com> | 2011-03-17 06:41:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-23 16:14:17 -0400 |
commit | 5f1e8ce75c19b0433aba6e0ea28937f1ee5d849e (patch) | |
tree | 751c1e9307fab582eb842324e0199b4d1e5e0beb /drivers/usb | |
parent | b5a3b3d985493c173925907adfebf3edab236fe7 (diff) |
usb: musb: Fix for merge issue
There was conflict while merging 2 patches. Enabling vbus code
is wrongly moved to error check if loop.
This is a fix to resolve the merge issue.
Signed-off-by: Hema HK <hemahk@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 5c7b321d3959..98519c5d8b5c 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1880,12 +1880,12 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver, | |||
1880 | if (retval < 0) { | 1880 | if (retval < 0) { |
1881 | DBG(1, "add_hcd failed, %d\n", retval); | 1881 | DBG(1, "add_hcd failed, %d\n", retval); |
1882 | goto err2; | 1882 | goto err2; |
1883 | |||
1884 | if ((musb->xceiv->last_event == USB_EVENT_ID) | ||
1885 | && musb->xceiv->set_vbus) | ||
1886 | otg_set_vbus(musb->xceiv, 1); | ||
1887 | } | 1883 | } |
1888 | 1884 | ||
1885 | if ((musb->xceiv->last_event == USB_EVENT_ID) | ||
1886 | && musb->xceiv->set_vbus) | ||
1887 | otg_set_vbus(musb->xceiv, 1); | ||
1888 | |||
1889 | hcd->self.uses_pio_for_control = 1; | 1889 | hcd->self.uses_pio_for_control = 1; |
1890 | 1890 | ||
1891 | if (musb->xceiv->last_event == USB_EVENT_NONE) | 1891 | if (musb->xceiv->last_event == USB_EVENT_NONE) |