Commit da66b719 authored by David Brownell's avatar David Brownell Committed by Linus Torvalds

[PATCH] ohci: don't play with IRQ regs

This is a more correct fix for the way the ohci hcd was referencing pt_regs
in the unlink paths.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent efbc52f9
...@@ -925,7 +925,7 @@ finish_unlinks (struct ohci_hcd *ohci, u16 tick) ...@@ -925,7 +925,7 @@ finish_unlinks (struct ohci_hcd *ohci, u16 tick)
/* only take off EDs that the HC isn't using, accounting for /* only take off EDs that the HC isn't using, accounting for
* frame counter wraps and EDs with partially retired TDs * 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)) { if (tick_before (tick, ed->tick)) {
skip_ed: skip_ed:
last = &ed->ed_next; last = &ed->ed_next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment