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: Yijing 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f40ac2ae1b
commit
6496c04529
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue