diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-05-30 18:24:07 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-03 12:29:55 -0700 |
commit | bf1ace2a3f0d133a662727f238928654bdc1d1b3 (patch) | |
tree | 53edb540b39927d1d9dfad497df5fe5523539fbf | |
parent | 2a1afdbf20ef028d6361c2257b3fef51a8df8b36 (diff) | |
download | op-kernel-dev-bf1ace2a3f0d133a662727f238928654bdc1d1b3.zip op-kernel-dev-bf1ace2a3f0d133a662727f238928654bdc1d1b3.tar.gz |
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: Yijing Wang <wangyijing@huawei.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/dwc2/pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/dwc2/pci.c b/drivers/staging/dwc2/pci.c index 0fcb9a5..3ca54d6 100644 --- a/drivers/staging/dwc2/pci.c +++ b/drivers/staging/dwc2/pci.c @@ -127,8 +127,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_ioremap_resource(&dev->dev, &dev->resource[0]); if (IS_ERR(hsotg->regs)) |