diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-06-27 08:53:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-29 01:11:48 -0400 |
commit | 1ca01512a2a95aa061c3fc24b7c5d7fad9f606bf (patch) | |
tree | 14750c0d7f55b822ff715f6aa040cad9c65ca74e /drivers/net/ethernet/8390/ne2k-pci.c | |
parent | 3b233fe0435518169af03027aedc83d42eb28ac4 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/8390/ne2k-pci.c')
-rw-r--r-- | drivers/net/ethernet/8390/ne2k-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/8390/ne2k-pci.c b/drivers/net/ethernet/8390/ne2k-pci.c index 587a885de259..92201080e07a 100644 --- a/drivers/net/ethernet/8390/ne2k-pci.c +++ b/drivers/net/ethernet/8390/ne2k-pci.c | |||
@@ -676,7 +676,7 @@ static int ne2k_pci_resume (struct pci_dev *pdev) | |||
676 | struct net_device *dev = pci_get_drvdata (pdev); | 676 | struct net_device *dev = pci_get_drvdata (pdev); |
677 | int rc; | 677 | int rc; |
678 | 678 | ||
679 | pci_set_power_state(pdev, 0); | 679 | pci_set_power_state(pdev, PCI_D0); |
680 | pci_restore_state(pdev); | 680 | pci_restore_state(pdev); |
681 | 681 | ||
682 | rc = pci_enable_device(pdev); | 682 | rc = pci_enable_device(pdev); |