Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc23d6b7 authored by Kalesh Purayil's avatar Kalesh Purayil Committed by David S. Miller
Browse files

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: default avatarKalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: default avatarSathya Perla <sathya.perla@avagotech.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff9ed19d
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -5807,7 +5807,6 @@ static int be_pci_resume(struct pci_dev *pdev)
	if (status)
	if (status)
		return status;
		return status;


	pci_set_power_state(pdev, PCI_D0);
	pci_restore_state(pdev);
	pci_restore_state(pdev);


	status = be_resume(adapter);
	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;
		return PCI_ERS_RESULT_DISCONNECT;


	pci_set_master(pdev);
	pci_set_master(pdev);
	pci_set_power_state(pdev, PCI_D0);
	pci_restore_state(pdev);
	pci_restore_state(pdev);


	/* Check if card is ok and fw is ready */
	/* Check if card is ok and fw is ready */