[PATCH] e100: Use pci_pme_active to clear PME_Status and disable PME#

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jesse Barnes <jbarnes@...>
Cc: Alessandro Guido <alessandro.guido@...>, <linux-kernel@...>, <netdev@...>, pm list <linux-pm@...>, Jeff Garzik <jeff@...>
Date: Thursday, August 7, 2008 - 6:18 pm

e100: Use pci_pme_active to clear PME_Status and disable PME#

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

---
 drivers/net/e100.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Index: linux-2.6/drivers/net/e100.c
===================================================================
--- linux-2.6.orig/drivers/net/e100.c
+++ linux-2.6/drivers/net/e100.c
@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p
 		nic->flags |= wol_magic;
 
 	/* ack any pending wake events, disable PME */
-	err = pci_enable_wake(pdev, 0, 0);
-	if (err)
-		DPRINTK(PROBE, ERR, "Error clearing wake event\n");
+	pci_pme_active(pdev, false);
 
 	strcpy(netdev->name, "eth%d");
 	if((err = register_netdev(netdev))) {
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] PCI PM: Export pci_pme_active to drivers, Rafael J. Wysocki, (Thu Aug 7, 6:14 pm)
Re: [PATCH] PCI PM: Export pci_pme_active to drivers, Jesse Barnes, (Thu Aug 7, 6:34 pm)
[PATCH] e100: Use pci_pme_active to clear PME_Status and dis..., Rafael J. Wysocki, (Thu Aug 7, 6:18 pm)
Re: [PATCH] e100: Use pci_pme_active to clear PME_Status and..., Rafael J. Wysocki, (Sun Sep 14, 7:44 pm)