diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-06-17 21:33:48 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 17:39:35 -0600 |
commit | 8802f56349eef1eedaf12238f84810d0691aaf34 (patch) | |
tree | bfc31d7d21a595b0b37e7de2fbb5cc84713e2aa4 /common/usb.c | |
parent | 682c9f8dfc47df94df061df58345d84f69be0a34 (diff) | |
download | u-boot-8802f56349eef1eedaf12238f84810d0691aaf34.tar.gz u-boot-8802f56349eef1eedaf12238f84810d0691aaf34.tar.bz2 u-boot-8802f56349eef1eedaf12238f84810d0691aaf34.zip |
usb: Add an usb_device parameter to usb_reset_root_port
Add an usb_device parameter to usb_reset_root_port so that it knows which
root-port it is resetting. This is necessary for proper device-model support
for usb_reset_root_port.
Also remove a duplicate declaration of usb_reset_root_port() from usb.h .
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/usb.c')
-rw-r--r-- | common/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb.c b/common/usb.c index d204ba26f5..fbaf8ecbe2 100644 --- a/common/usb.c +++ b/common/usb.c @@ -924,7 +924,7 @@ static int usb_hub_port_reset(struct usb_device *dev, struct usb_device *hub) return err; } } else { - usb_reset_root_port(); + usb_reset_root_port(dev); } return 0; |