Skip to content

Commit

Permalink
phy: use flush_work_keventd()
Browse files Browse the repository at this point in the history
(akpm: bypassed maintainers, sorry.  There are other patches which depend on
this)

Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 9, 2007
1 parent 67ac58e commit d0758bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,10 @@ int phy_stop_interrupts(struct phy_device *phydev)
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);

Expand Down

0 comments on commit d0758bc

Please sign in to comment.