aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-04-28 07:35:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 18:18:48 -0400
commitfebf2f63c1d8b4e622730f52202b9d0374a6c058 (patch)
tree22fa7ec8b40697accc3acd7de6eeafaf7c673639 /drivers/usb/core
parentd5afce82e131eb5a171afeba0bc5fefbe2417ad9 (diff)
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>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/hcd-pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index 1f02e65fe305..82044b5d6113 100644
--- a/drivers/usb/core/hcd-pci.c
+++ b/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)
192 192
193 if (pci_enable_device(dev) < 0) 193 if (pci_enable_device(dev) < 0)
194 return -ENODEV; 194 return -ENODEV;
195 dev->current_state = PCI_D0;
196 195
197 /* 196 /*
198 * The xHCI driver has its own irq management 197 * The xHCI driver has its own irq management