Skip to contentSkip to conversation

dwc2: remove redundant D0 power state set

PATCH Superseded Yijing Wang 1 participant 1 message Jun 3, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 dwc2: 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 in dwc2_driver_probe().

---
 drivers/staging/dwc2/pci.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/staging/dwc2/pci.c +0 -2
index 69c65eb..6a196c2 100644
@@ -131,8 +131,6 @@ static int dwc2_driver_probe(struct pci_dev *dev,
 	if (!hsotg)
 		return -ENOMEM;
 
-	pci_set_power_state(dev, PCI_D0);
-
 	hsotg->dev = &dev->dev;
 	hsotg->regs = devm_request_and_ioremap(&dev->dev, &dev->resource[0]);
 	if (!hsotg->regs)
Signature · 1 line
1.7.1