Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64ccd715 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

[PATCH] Convert users to tty_unregister_ldisc()



tty_register_ldisc(N_FOO, NULL) => tty_unregister_ldisc(N_FOO)

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bfb07599
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -576,7 +576,7 @@ static void __exit hci_uart_exit(void)
#endif

	/* Release tty registration of line discipline */
	if ((err = tty_register_ldisc(N_HCI, NULL)))
	if ((err = tty_unregister_ldisc(N_HCI)))
		BT_ERR("Can't unregister HCI line discipline (%d)", err);
}

+1 −1
Original line number Diff line number Diff line
@@ -960,7 +960,7 @@ static char hdlc_unregister_fail[] __exitdata =
static void __exit n_hdlc_exit(void)
{
	/* Release tty registration of line discipline */
	int status = tty_register_ldisc(N_HDLC, NULL);
	int status = tty_unregister_ldisc(N_HDLC);

	if (status)
		printk(hdlc_unregister_fail, status);
+1 −1
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ static void __exit r3964_exit(void)
   
   TRACE_M ("cleanup_module()");

   status=tty_register_ldisc(N_R3964, NULL);
   status=tty_unregister_ldisc(N_R3964);
   
   if(status!=0)
   {
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ static int __init serport_init(void)

static void __exit serport_exit(void)
{
	tty_register_ldisc(N_MOUSE, NULL);
	tty_unregister_ldisc(N_MOUSE);
}

module_init(serport_init);
+1 −1
Original line number Diff line number Diff line
@@ -848,7 +848,7 @@ static void __exit sixpack_exit_driver(void)
{
	int ret;

	if ((ret = tty_register_ldisc(N_6PACK, NULL)))
	if ((ret = tty_unregister_ldisc(N_6PACK)))
		printk(msg_unregfail, ret);
}

Loading