diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index ecb3eb099bf6..6be418591df9 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -12463,9 +12463,11 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp) | |||
12463 | tp->tg3_flags3 |= TG3_FLG3_RGMII_EXT_IBND_TX_EN; | 12463 | tp->tg3_flags3 |= TG3_FLG3_RGMII_EXT_IBND_TX_EN; |
12464 | } | 12464 | } |
12465 | done: | 12465 | done: |
12466 | device_init_wakeup(&tp->pdev->dev, tp->tg3_flags & TG3_FLAG_WOL_CAP); | 12466 | if (tp->tg3_flags & TG3_FLAG_WOL_CAP) |
12467 | device_set_wakeup_enable(&tp->pdev->dev, | 12467 | device_set_wakeup_enable(&tp->pdev->dev, |
12468 | tp->tg3_flags & TG3_FLAG_WOL_ENABLE); | 12468 | tp->tg3_flags & TG3_FLAG_WOL_ENABLE); |
12469 | else | ||
12470 | device_set_wakeup_capable(&tp->pdev->dev, false); | ||
12469 | } | 12471 | } |
12470 | 12472 | ||
12471 | static int __devinit tg3_issue_otp_command(struct tg3 *tp, u32 cmd) | 12473 | static int __devinit tg3_issue_otp_command(struct tg3 *tp, u32 cmd) |