OSDN Git Service

ARM: OMAP: USB: Fixup ehci_hcd_omap_probe error path
authorRuss Dill <Russ.Dill@ti.com>
Thu, 21 Jun 2012 10:44:31 +0000 (03:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jun 2012 02:44:18 +0000 (19:44 -0700)
commit984e97483a143f95d861b7218161ae033df293ab
tree101954591308e7b59cc02708f1cfb4f970d05c37
parenta46af4ebf9ffec35eea0390e89935197b833dc61
ARM: OMAP: USB: Fixup ehci_hcd_omap_probe error path

A recent commit, [PATCH] Fix OMAP EHCI suspend/resume failure
(i693) '354ab856' causes ehci probe to fail on omap3xxx. This
exposed bugs in the ehci_hcd_omap_probe error path causing
an oops.

On the error path, call usb_remove_hcd if usb_add_hcd has been
called, and call usb_put_hcd if usb_alloc_hcd has been called.

Tested on BB-xM.

Signed-off-by: Russ.Dill@ti.com
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-omap.c