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
@@ -3299,7 +3299,7 @@ static int myri10ge_resume(struct pci_dev *pdev)
|
||||
if (mgp == NULL)
|
||||
return -EINVAL;
|
||||
netdev = mgp->dev;
|
||||
pci_set_power_state(pdev, 0); /* zeros conf space as a side effect */
|
||||
pci_set_power_state(pdev, PCI_D0); /* zeros conf space as a side effect */
|
||||
msleep(5); /* give card time to respond */
|
||||
pci_read_config_word(mgp->pdev, PCI_VENDOR_ID, &vendor);
|
||||
if (vendor == 0xffff) {
|
||||
|
Reference in New Issue
Block a user