diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2018-05-21 15:39:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-24 18:03:08 +0200 |
commit | 6b7f40f712344ec8fdca10450834825094e797fb (patch) | |
tree | ddc0d11505362bd5ed9461d3d56357c008b58d3d /drivers/usb/host/xhci-ring.c | |
parent | xhci: rename faked_port_index to hcd_portnum (diff) | |
download | linux-6b7f40f712344ec8fdca10450834825094e797fb.tar.xz linux-6b7f40f712344ec8fdca10450834825094e797fb.zip |
xhci: change xhci_set_link_state() to work with port structures
Remove old iomem port array and index as parameters, just
send a ponter to a port strucure instread
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/xhci-ring.c')
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 31b72133d7a3..6e4211eea0e2 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1591,8 +1591,7 @@ static void handle_port_status(struct xhci_hcd *xhci, bus_state->port_remote_wakeup |= 1 << hcd_portnum; xhci_test_and_clear_bit(xhci, port_array, hcd_portnum, PORT_PLC); - xhci_set_link_state(xhci, port_array, hcd_portnum, - XDEV_U0); + xhci_set_link_state(xhci, port, XDEV_U0); /* Need to wait until the next link state change * indicates the device is actually in U0. */ |