]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: Clean up newly allocated device nodes in case of configuration failure
authorMilind Choudhary <milindc@codeaurora.org>
Thu, 13 Dec 2012 01:55:28 +0000 (17:55 -0800)
committerMarek Vasut <marex@denx.de>
Mon, 17 Dec 2012 14:38:15 +0000 (15:38 +0100)
commit359439d2888fdc3797903963607bb0bbd4582e08
tree53b04bf80b9d3fbc57b7feb318092048e007bb0a
parentb6d7852cf8b7ced786937d3d080956b0c7be9836
usb: Clean up newly allocated device nodes in case of configuration failure

If probe of a newly connected device fails for some reason, clean up
the allocated entry in usb_dev array.

Signed-off-by: Milind Choudhary <milindc@codeaurora.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
common/usb.c
common/usb_hub.c
include/usb.h