]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: xhci: cleanup cmd_completion in xhci_virt_device
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 11 Nov 2016 13:13:29 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 09:18:22 +0000 (10:18 +0100)
cmd_completion in struct xhci_virt_device is legacy. With command
structure and command queue introduced in xhci, cmd_completion is
not used any more. This patch removes it.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h

index 6afe32381209d76cd0cf2f46d686a9f07a43f2c9..8102a86f249cd020ee1e7799287197e25bb76161 100644 (file)
@@ -1032,7 +1032,6 @@ int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id,
                goto fail;
        dev->num_rings_cached = 0;
 
-       init_completion(&dev->cmd_completion);
        dev->udev = udev;
 
        /* Point to output device context in dcbaa. */
index ad1a25b7b9be5d836d3fec507c390c4657457a55..2561924c34f26e62f41b8c16c66f952b27831f4d 100644 (file)
@@ -999,7 +999,6 @@ struct xhci_virt_device {
        int                             num_rings_cached;
 #define        XHCI_MAX_RINGS_CACHED   31
        struct xhci_virt_ep             eps[31];
-       struct completion               cmd_completion;
        u8                              fake_port;
        u8                              real_port;
        struct xhci_interval_bw_table   *bw_table;