]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: Drop device-model specific copy of usb_legacy_port_reset
authorHans de Goede <hdegoede@redhat.com>
Wed, 17 Jun 2015 19:33:45 +0000 (21:33 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:56 +0000 (13:48 +0200)
commitbc122db54dbae43b8ba03779eef6e5c083c1c3b2
treece8391a2191d5737892cc369ecea5f2ef0b19826
parentf9045dec02ec0a5a609d5287a1400f3634dbc81e
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 <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/usb.c
drivers/usb/host/usb-uclass.c
include/usb.h