diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-25 12:22:50 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:28 -0600 |
commit | 7e0c5ee8748ae46aafebaedd594240ca4705f9ea (patch) | |
tree | d1423732a761c85ae9f426b97747462dd4c1e3a2 /drivers/usb/host/xhci.c | |
parent | 7c1deec0afc209fea14bc38e3a3e1d28b773ee55 (diff) | |
download | blackbird-obmc-uboot-7e0c5ee8748ae46aafebaedd594240ca4705f9ea.tar.gz blackbird-obmc-uboot-7e0c5ee8748ae46aafebaedd594240ca4705f9ea.zip |
dm: usb: xhci: Use explicit parameters for xhci_alloc_virt_device()
This function should not be delving into struct usb_device. Pass in the
parameters it needs directly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 61a4a36dad..b4208a147f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -491,7 +491,7 @@ int usb_alloc_device(struct usb_device *udev) xhci_acknowledge_event(ctrl); - ret = xhci_alloc_virt_device(udev); + ret = xhci_alloc_virt_device(ctrl, udev->slot_id); if (ret < 0) { /* * TODO: Unsuccessful Address Device command shall leave |