usb: Pass device instead of portnr to usb_legacy_port_reset
authorHans de Goede <hdegoede@redhat.com>
Wed, 17 Jun 2015 19:33:47 +0000 (21:33 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:35 +0000 (17:39 -0600)
commit682c9f8dfc47df94df061df58345d84f69be0a34
tree854a605f9a62f93e123cd28b0ae7020b21a34759
parent9eb72dd1f4a7d4b6996a2b2ebf8d9a72ef78a998
usb: Pass device instead of portnr to usb_legacy_port_reset

Pass the usb_device instead of the portnr to usb_legacy_port_reset and
rename it to usb_hub_port_reset as there is nothing legacy about it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/usb.c