Skip to content

Commit

Permalink
usb: remove redundant D0 power state set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yijing Wang authored and Greg Kroah-Hartman committed May 27, 2014
1 parent d5afce8 commit febf2f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/core/hcd-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit febf2f6

Please sign in to comment.