[PATCH] Convert users to tty_unregister_ldisc()
tty_register_ldisc(N_FOO, NULL) => tty_unregister_ldisc(N_FOO) Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
bfb07599da
commit
64ccd715d3
@ -2828,7 +2828,7 @@ static void __exit strip_exit_driver(void)
|
||||
/* Unregister with the /proc/net file here. */
|
||||
proc_net_remove("strip");
|
||||
|
||||
if ((i = tty_register_ldisc(N_STRIP, NULL)))
|
||||
if ((i = tty_unregister_ldisc(N_STRIP)))
|
||||
printk(KERN_ERR "STRIP: can't unregister line discipline (err = %d)\n", i);
|
||||
|
||||
printk(signoff);
|
||||
|
Reference in New Issue
Block a user