Browse Source

usb: remove redundant D0 power state set

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>
Yijing Wang 11 years ago
parent
commit
febf2f63c1
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/usb/core/hcd-pci.c

+ 0 - 1
drivers/usb/core/hcd-pci.c

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