Commit bf1ace2a authored by Yijing Wang's avatar Yijing Wang Committed by Greg Kroah-Hartman

staging: 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().
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Acked-by: default avatarPaul Zimmerman <paulz@synopsys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2a1afdbf
...@@ -127,8 +127,6 @@ static int dwc2_driver_probe(struct pci_dev *dev, ...@@ -127,8 +127,6 @@ static int dwc2_driver_probe(struct pci_dev *dev,
if (!hsotg) if (!hsotg)
return -ENOMEM; return -ENOMEM;
pci_set_power_state(dev, PCI_D0);
hsotg->dev = &dev->dev; hsotg->dev = &dev->dev;
hsotg->regs = devm_ioremap_resource(&dev->dev, &dev->resource[0]); hsotg->regs = devm_ioremap_resource(&dev->dev, &dev->resource[0]);
if (IS_ERR(hsotg->regs)) if (IS_ERR(hsotg->regs))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment