projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1afdb
)
staging: dwc2: remove redundant D0 power state set
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 30 May 2013 10:24:07 +0000
(18:24 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 19:29:55 +0000
(12:29 -0700)
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>
drivers/staging/dwc2/pci.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dwc2/pci.c
b/drivers/staging/dwc2/pci.c
index 0fcb9a5a87e1a3157bc4aa05575de90cca9ff55c..3ca54d6782fdc4a69af5a44e025c4cb71d915db8 100644
(file)
--- 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))