Commit 6496c045 authored by Yijing Wang's avatar Yijing Wang Committed by Greg Kroah-Hartman
Browse files

vt6655/trivial: replace numeric with standard PM state macros



Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: Devendra Naga <devendra.aaru@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f40ac2ae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)
	PSMgmtObject  pMgmt = pDevice->pMgmt;
	int power_status;   // to silence the compiler

	power_status = pci_set_power_state(pcid, 0);
	power_status = pci_enable_wake(pcid, 0, 0);
	power_status = pci_set_power_state(pcid, PCI_D0);
	power_status = pci_enable_wake(pcid, PCI_D0, 0);
	pci_restore_state(pcid);
	if (netif_running(pDevice->dev)) {
		spin_lock_irq(&pDevice->lock);