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>
This commit is contained in:
Mathias Nyman 2018-12-07 16:19:31 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель f6187f424c
Коммит 1c2d81cc28
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -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;