riscom8: Fix hang on load
This has been around for a while but nobody reported it until recently. Resubmitting the fix as it's appropriate for 2.6.25 Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
cdeeeae056
commit
f4299e1943
@ -1620,14 +1620,8 @@ static int __init rc_init_drivers(void)
|
||||
|
||||
static void rc_release_drivers(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&riscom_lock, flags);
|
||||
|
||||
tty_unregister_driver(riscom_driver);
|
||||
put_tty_driver(riscom_driver);
|
||||
|
||||
spin_unlock_irqrestore(&riscom_lock, flags);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
|
Loading…
Reference in New Issue
Block a user