From: Andy Gospodarek Date: Wed, 22 Jul 2009 09:34:00 +0000 (+0000) Subject: ixgbe: remove unnecessary call to device_init_wakeup X-Git-Tag: v3.12-rc1~13425^2~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffafa60d496f80c250f2ae0340ae94434c0b0b4d;p=kernel%2Fkernel-generic.git 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 Acked-by: Peter P Waskiewicz Jr Signed-off-by: David S. Miller --- 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 */