ixgbe: remove unnecessary call to device_init_wakeup

Previous thread: ath5k: temporarily disable crypto for AP mode by Linux Kernel Mailing List on Monday, July 27, 2009 - 3:59 pm. (1 message)

Next thread: ath9k: Tune ANI function processing on AP mode during ANI reset by Linux Kernel Mailing List on Monday, July 27, 2009 - 3:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Monday, July 27, 2009 - 3:59 pm

Gitweb:     http://git.kernel.org/linus/ffafa60d496f80c250f2ae0340ae94434c0b0b4d
Commit:     ffafa60d496f80c250f2ae0340ae94434c0b0b4d
Parent:     601278659d5717b4f7a14fbc9f2b9d559bba6aef
Author:     Andy Gospodarek <andy@greyhouse.net>
AuthorDate: Wed Jul 22 09:34:00 2009 +0000
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jul 23 11:05:32 2009 -0700

    ixgbe: remove unnecessary call to device_init_wakeup
    
    Calls to device_init_wakeup should not be necessary in drivers that use
    device_set_wakeup_enable since pci_pm_init will set the can_wakeup flag
    for the device when initialized.
    
    Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
    Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/ixgbe/ixgbe_main.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 47a3c6d..6887759 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -5640,7 +5640,6 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
 		adapter->wol = 0;
 		break;
 	}
-	device_init_wakeup(&adapter->pdev->dev, true);
 	device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol);
 
 	/* pick up the PCI bus settings for reporting later */
--

Previous thread: ath5k: temporarily disable crypto for AP mode by Linux Kernel Mailing List on Monday, July 27, 2009 - 3:59 pm. (1 message)

Next thread: ath9k: Tune ANI function processing on AP mode during ANI reset by Linux Kernel Mailing List on Monday, July 27, 2009 - 3:59 pm. (1 message)