net/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: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3b233fe043
commit
1ca01512a2
@@ -3211,7 +3211,7 @@ static int velocity_resume(struct device *dev)
|
||||
velocity_set_power_state(vptr, PCI_D0);
|
||||
|
||||
if (vptr->pdev) {
|
||||
pci_enable_wake(vptr->pdev, 0, 0);
|
||||
pci_enable_wake(vptr->pdev, PCI_D0, 0);
|
||||
pci_restore_state(vptr->pdev);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user