diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/phy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 4044bb1ada86..e175f3910b18 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c | |||
@@ -587,8 +587,7 @@ int phy_stop_interrupts(struct phy_device *phydev) | |||
587 | * Finish any pending work; we might have been scheduled | 587 | * Finish any pending work; we might have been scheduled |
588 | * to be called from keventd ourselves, though. | 588 | * to be called from keventd ourselves, though. |
589 | */ | 589 | */ |
590 | if (!current_is_keventd()) | 590 | run_scheduled_work(&phydev->phy_queue); |
591 | flush_scheduled_work(); | ||
592 | 591 | ||
593 | free_irq(phydev->irq, phydev); | 592 | free_irq(phydev->irq, phydev); |
594 | 593 | ||