[U-Boot] [PATCH 02/22] usb: Drop device-model specific copy of usb_legacy_port_reset

Simon Glass sjg at chromium.org
Mon Jun 29 05:44:51 CEST 2015


On 17 June 2015 at 13:33, Hans de Goede <hdegoede at redhat.com> wrote:
> 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 <hdegoede at redhat.com>
> ---
>  common/usb.c                  |  4 +---
>  drivers/usb/host/usb-uclass.c | 29 -----------------------------
>  include/usb.h                 |  8 --------
>  3 files changed, 1 insertion(+), 40 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list