Skip to content

Commit

Permalink
[PATCH] ohci: don't play with IRQ regs
Browse files Browse the repository at this point in the history
This is a more correct fix for the way the ohci hcd was referencing pt_regs
in the unlink paths.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
David Brownell authored and Linus Torvalds committed Oct 6, 2006
1 parent efbc52f commit da66b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ohci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ finish_unlinks (struct ohci_hcd *ohci, u16 tick)
/* only take off EDs that the HC isn't using, accounting for
* frame counter wraps and EDs with partially retired TDs
*/
if (likely (get_irq_regs() && HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
if (likely (HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
if (tick_before (tick, ed->tick)) {
skip_ed:
last = &ed->ed_next;
Expand Down

0 comments on commit da66b71

Please sign in to comment.