Commit c018b7af authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e9bf3b07
...@@ -1540,7 +1540,7 @@ static int smsc9420_resume(struct pci_dev *pdev) ...@@ -1540,7 +1540,7 @@ static int smsc9420_resume(struct pci_dev *pdev)
pci_set_master(pdev); pci_set_master(pdev);
err = pci_enable_wake(pdev, 0, 0); err = pci_enable_wake(pdev, PCI_D0, 0);
if (err) if (err)
netif_warn(pd, ifup, pd->dev, "pci_enable_wake failed: %d\n", netif_warn(pd, ifup, pd->dev, "pci_enable_wake failed: %d\n",
err); err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment