summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex
diff options
context:
space:
mode:
authorKalesh Purayil <kalesh.purayil@avagotech.com>2015-07-10 05:32:45 -0400
committerDavid S. Miller <davem@davemloft.net>2015-07-10 23:24:29 -0700
commitbc23d6b7ab051106b700869e7ee09e8aec6864f2 (patch)
tree1ab57ad507589e383a674e5a20e2045d873979ee /drivers/net/ethernet/emulex
parentff9ed19d263d9678394b6ac079abd68efb3c55c0 (diff)
downloadlinux-stable-bc23d6b7ab051106b700869e7ee09e8aec6864f2.tar.gz
linux-stable-bc23d6b7ab051106b700869e7ee09e8aec6864f2.tar.bz2
linux-stable-bc23d6b7ab051106b700869e7ee09e8aec6864f2.zip
be2net: remove redundant D0 power state set
pci_enable_device() call sets device power state to D0; there is no need doing it again. Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com> Signed-off-by: Sathya Perla <sathya.perla@avagotech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r--drivers/net/ethernet/emulex/benet/be_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index f21c56abd5c2..8b81e23ae9ba 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -5807,7 +5807,6 @@ static int be_pci_resume(struct pci_dev *pdev)
if (status)
return status;
- pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);
status = be_resume(adapter);
@@ -5887,7 +5886,6 @@ static pci_ers_result_t be_eeh_reset(struct pci_dev *pdev)
return PCI_ERS_RESULT_DISCONNECT;
pci_set_master(pdev);
- pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);
/* Check if card is ok and fw is ready */