From: Julia Lawall Date: Thu, 2 Jan 2014 23:40:31 +0000 (+0100) Subject: smsc9420: use named constants for pci_power_t values X-Git-Tag: MMI-PSA29.97-13-9~12877^2~307 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c018b7af5e9e59c19df39a86e3da58e6293d922b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git smsc9420: use named constants for pci_power_t values The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression e1,e2; @@ pci_enable_wake(e1, - 0 + PCI_D0 ,e2) // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- 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);