]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d4a5035ceb162f44d707fd7c6e959ecc6f58eac
tree101954591308e7b59cc02708f1cfb4f970d05c37
parentc5f3fb44904932a842c971e0ffc6bc445f9813c2
ARM: OMAP: USB: Fixup ehci_hcd_omap_probe error path

A recent commit, [PATCH] Fix OMAP EHCI suspend/resume failure
(i693) '5a320989' 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