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

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
...@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid) ...@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)
PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt;
int power_status; // to silence the compiler int power_status; // to silence the compiler
power_status = pci_set_power_state(pcid, 0); power_status = pci_set_power_state(pcid, PCI_D0);
power_status = pci_enable_wake(pcid, 0, 0); power_status = pci_enable_wake(pcid, PCI_D0, 0);
pci_restore_state(pcid); pci_restore_state(pcid);
if (netif_running(pDevice->dev)) { if (netif_running(pDevice->dev)) {
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment