From 359439d2888fdc3797903963607bb0bbd4582e08 Mon Sep 17 00:00:00 2001 From: Milind Choudhary Date: Wed, 12 Dec 2012 17:55:28 -0800 Subject: 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 Signed-off-by: Simon Glass --- include/usb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/usb.h') diff --git a/include/usb.h b/include/usb.h index 8d8a2c9b9d..d79c865884 100644 --- a/include/usb.h +++ b/include/usb.h @@ -392,5 +392,6 @@ int hub_port_reset(struct usb_device *dev, int port, struct usb_device *usb_alloc_new_device(void *controller); int usb_new_device(struct usb_device *dev); +void usb_free_device(void); #endif /*_USB_H_ */ -- cgit v1.2.1