]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
riscom8: Fix hang on load
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Mon, 10 Mar 2008 13:24:49 +0000 (13:24 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 10 Mar 2008 15:13:09 +0000 (08:13 -0700)
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>
drivers/char/riscom8.c

index 8fc4fe4e38f1bdb728f751955aa69d3f9fb06dd8..589ac6f65b9afe21d2e73d15d31be29e0c53b95a 100644 (file)
@@ -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