igb: Use device_set_wakeup_enable
[firefly-linux-kernel-4.4.55.git] / drivers / net / igb / igb_main.c
index 1f397cd99414dd51293b5d5dadfec1905c52fa19..0a9801516ae02f180bac0c91f3ba788a3dc925eb 100644 (file)
@@ -1244,6 +1244,7 @@ static int __devinit igb_probe(struct pci_dev *pdev,
 
        /* initialize the wol settings based on the eeprom settings */
        adapter->wol = adapter->eeprom_wol;
+       device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol);
 
        /* reset the hardware with the new settings */
        igb_reset(adapter);