From 6bfe80e754d7e2841316429f091ed3b68f6cf5a2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 17 Jun 2015 21:33:45 +0200 Subject: usb: Drop device-model specific copy of usb_legacy_port_reset The device-model usb_legacy_port_reset function calls the device-model usb_port_reset function which is a 1 on 1 copy of the non dm usb_legacy_port_reset and this is the only use of usb_port_reset in all of u-boot. Drop both, and alway use the usb_legacy_port_reset() version in common/usb.c . Also while at it make it static as it is only used in common/usb.c . Signed-off-by: Hans de Goede Acked-by: Simon Glass --- include/usb.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'include/usb.h') diff --git a/include/usb.h b/include/usb.h index dca512d..6b5d536 100644 --- a/include/usb.h +++ b/include/usb.h @@ -730,14 +730,6 @@ int usb_reset_root_port(void); struct usb_device *usb_get_dev_index(struct udevice *bus, int index); /** - * usb_legacy_port_reset() - Legacy function to reset a hub port - * - * @hub: Hub device - * @portnr: Port number (1=first) - */ -int usb_legacy_port_reset(struct usb_device *hub, int portnr); - -/** * usb_setup_device() - set up a device ready for use * * @dev: USB device pointer. This need not be a real device - it is -- cgit v1.1