aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/via
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-06-27 08:53:42 -0400
committerDavid S. Miller <davem@davemloft.net>2013-06-29 01:11:48 -0400
commit1ca01512a2a95aa061c3fc24b7c5d7fad9f606bf (patch)
tree14750c0d7f55b822ff715f6aa040cad9c65ca74e /drivers/net/ethernet/via
parent3b233fe0435518169af03027aedc83d42eb28ac4 (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/via')
-rw-r--r--drivers/net/ethernet/via/via-velocity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index 76919948b4ee..1d6dc41f755d 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -3211,7 +3211,7 @@ static int velocity_resume(struct device *dev)
3211 velocity_set_power_state(vptr, PCI_D0); 3211 velocity_set_power_state(vptr, PCI_D0);
3212 3212
3213 if (vptr->pdev) { 3213 if (vptr->pdev) {
3214 pci_enable_wake(vptr->pdev, 0, 0); 3214 pci_enable_wake(vptr->pdev, PCI_D0, 0);
3215 pci_restore_state(vptr->pdev); 3215 pci_restore_state(vptr->pdev);
3216 } 3216 }
3217 3217