summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-01-03 03:40:31 +0400
committerDavid S. Miller <davem@davemloft.net>2014-01-04 04:58:48 +0400
commitc018b7af5e9e59c19df39a86e3da58e6293d922b (patch)
tree152281ce9da3eef43b507d56dc45f761e716015d /drivers/net/ethernet/smsc
parente9bf3b075384b3b400ab4689a2014860704164b7 (diff)
downloadlinux-c018b7af5e9e59c19df39a86e3da58e6293d922b.tar.xz
smsc9420: use named constants for pci_power_t values
The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e1,e2; @@ pci_enable_wake(e1, - 0 + PCI_D0 ,e2) // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc')
-rw-r--r--drivers/net/ethernet/smsc/smsc9420.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c
index 9d6effe5f699..d3b967aff9e0 100644
--- a/drivers/net/ethernet/smsc/smsc9420.c
+++ b/drivers/net/ethernet/smsc/smsc9420.c
@@ -1540,7 +1540,7 @@ static int smsc9420_resume(struct pci_dev *pdev)
pci_set_master(pdev);
- err = pci_enable_wake(pdev, 0, 0);
+ err = pci_enable_wake(pdev, PCI_D0, 0);
if (err)
netif_warn(pd, ifup, pd->dev, "pci_enable_wake failed: %d\n",
err);