n_hdlc.c (f81ee8b8b8421dc06d13f197bb53191559cc51da) | n_hdlc.c (357a6a875f1c4772f2102639bf19619780889f31) |
---|---|
1// SPDX-License-Identifier: GPL-1.0+ 2/* generic HDLC line discipline for Linux 3 * 4 * Written by Paul Fulghum paulkf@microgate.com 5 * for Microgate Corporation 6 * 7 * Microgate and SyncLink are registered trademarks of Microgate Corporation 8 * --- 808 unchanged lines hidden (view full) --- 817 status); 818 819 return status; 820 821} /* end of init_module() */ 822 823static void __exit n_hdlc_exit(void) 824{ | 1// SPDX-License-Identifier: GPL-1.0+ 2/* generic HDLC line discipline for Linux 3 * 4 * Written by Paul Fulghum paulkf@microgate.com 5 * for Microgate Corporation 6 * 7 * Microgate and SyncLink are registered trademarks of Microgate Corporation 8 * --- 808 unchanged lines hidden (view full) --- 817 status); 818 819 return status; 820 821} /* end of init_module() */ 822 823static void __exit n_hdlc_exit(void) 824{ |
825 int status = tty_unregister_ldisc(&n_hdlc_ldisc); 826 827 if (status) 828 pr_err("N_HDLC: can't unregister line discipline (err = %d)\n", 829 status); 830 else 831 pr_info("N_HDLC: line discipline unregistered\n"); | 825 tty_unregister_ldisc(&n_hdlc_ldisc); |
832} 833 834module_init(n_hdlc_init); 835module_exit(n_hdlc_exit); 836 837MODULE_LICENSE("GPL"); 838MODULE_AUTHOR("Paul Fulghum paulkf@microgate.com"); 839module_param(maxframe, int, 0); 840MODULE_ALIAS_LDISC(N_HDLC); | 826} 827 828module_init(n_hdlc_init); 829module_exit(n_hdlc_exit); 830 831MODULE_LICENSE("GPL"); 832MODULE_AUTHOR("Paul Fulghum paulkf@microgate.com"); 833module_param(maxframe, int, 0); 834MODULE_ALIAS_LDISC(N_HDLC); |