From: Andrew Morton Cc: "Maciej W. Rozycki" Cc: David Howells Cc: Jeff Garzik Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- drivers/net/phy/phy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN drivers/net/phy/phy.c~phy-use-flush_work drivers/net/phy/phy.c --- a/drivers/net/phy/phy.c~phy-use-flush_work +++ a/drivers/net/phy/phy.c @@ -656,10 +656,10 @@ int phy_stop_interrupts(struct phy_devic phy_error(phydev); /* - * Finish any pending work; we might have been scheduled - * to be called from keventd ourselves, though. + * Finish any pending work; we might have been scheduled to be called + * from keventd ourselves, but flush_work_keventd() handles that. */ - run_scheduled_work(&phydev->phy_queue); + flush_work_keventd(&phydev->phy_queue); free_irq(phydev->irq, phydev); _