usb: remove redundant D0 power state set
authorYijing Wang <wangyijing@huawei.com>
Mon, 28 Apr 2014 11:35:09 +0000 (19:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:18:48 +0000 (15:18 -0700)
Pci_enable_device() will set device power state to D0,
so it's no need to do it again after call pci_enable_device().

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd-pci.c

index 1f02e65fe3056e609fc0b060f4878f4f5a372598..82044b5d61135213cbdc8ef7b61b0828b9482c7d 100644 (file)
@@ -192,7 +192,6 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
 
        if (pci_enable_device(dev) < 0)
                return -ENODEV;
-       dev->current_state = PCI_D0;
 
        /*
         * The xHCI driver has its own irq management