diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2018-12-07 17:19:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-07 17:40:41 +0300 |
commit | 1c2d81cc287c59161b19c5810f0091fe33448e07 (patch) | |
tree | 28d5883df034938ed23768c1cea122310f9d21d4 /drivers/usb/host | |
parent | f6187f424c10210e8e9917d4b7035ddc935010f6 (diff) | |
download | linux-1c2d81cc287c59161b19c5810f0091fe33448e07.tar.xz |
xhci: remove unused hcd_index()
Now that each root hub has their own bus_state strucure the
hcd_undex() used to get the correct bus_state strucure is
no longer needed.
No functional changes
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index b57b7934fae1..3c6b5049464a 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -1682,13 +1682,6 @@ struct xhci_bus_state { */ #define XHCI_MAX_REXIT_TIMEOUT_MS 20 -static inline unsigned int hcd_index(struct usb_hcd *hcd) -{ - if (hcd->speed >= HCD_USB3) - return 0; - else - return 1; -} struct xhci_port { __le32 __iomem *addr; int hw_portnum; |