Bluetooth: Remove __exit from rfcomm_cleanup_ttys()
authorGustavo F. Padovan <[email protected]>
Sat, 31 Jul 2010 22:57:05 +0000 (19:57 -0300)
committerMarcel Holtmann <[email protected]>
Sat, 31 Jul 2010 23:09:21 +0000 (16:09 -0700)
rfcomm_cleanup_ttys() is also called from rfcomm_init(), so it can't
have __exit.

Reported-by: Mat Martineau <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
net/bluetooth/rfcomm/tty.c

index 026205c18b7850a6736284a521dcd604ff06fc36..befc3a52aa04ba2c03a7d367d86766e40de0950f 100644 (file)
@@ -1183,7 +1183,7 @@ int __init rfcomm_init_ttys(void)
        return 0;
 }
 
-void __exit rfcomm_cleanup_ttys(void)
+void rfcomm_cleanup_ttys(void)
 {
        tty_unregister_driver(rfcomm_tty_driver);
        put_tty_driver(rfcomm_tty_driver);