n_gsm.c (f81ee8b8b8421dc06d13f197bb53191559cc51da) | n_gsm.c (357a6a875f1c4772f2102639bf19619780889f31) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * n_gsm.c GSM 0710 tty multiplexor 4 * Copyright (c) 2009/10 Intel Corporation 5 * 6 * * THIS IS A DEVELOPMENT SNAPSHOT IT IS NOT A FINAL RELEASE * 7 * 8 * TO DO: --- 3272 unchanged lines hidden (view full) --- 3281 put_tty_driver(gsm_tty_driver); 3282err_unreg_ldisc: 3283 tty_unregister_ldisc(&tty_ldisc_packet); 3284 return status; 3285} 3286 3287static void __exit gsm_exit(void) 3288{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * n_gsm.c GSM 0710 tty multiplexor 4 * Copyright (c) 2009/10 Intel Corporation 5 * 6 * * THIS IS A DEVELOPMENT SNAPSHOT IT IS NOT A FINAL RELEASE * 7 * 8 * TO DO: --- 3272 unchanged lines hidden (view full) --- 3281 put_tty_driver(gsm_tty_driver); 3282err_unreg_ldisc: 3283 tty_unregister_ldisc(&tty_ldisc_packet); 3284 return status; 3285} 3286 3287static void __exit gsm_exit(void) 3288{ |
3289 int status = tty_unregister_ldisc(&tty_ldisc_packet); 3290 if (status != 0) 3291 pr_err("n_gsm: can't unregister line discipline (err = %d)\n", 3292 status); | 3289 tty_unregister_ldisc(&tty_ldisc_packet); |
3293 tty_unregister_driver(gsm_tty_driver); 3294 put_tty_driver(gsm_tty_driver); 3295} 3296 3297module_init(gsm_init); 3298module_exit(gsm_exit); 3299 3300 3301MODULE_LICENSE("GPL"); 3302MODULE_ALIAS_LDISC(N_GSM0710); | 3290 tty_unregister_driver(gsm_tty_driver); 3291 put_tty_driver(gsm_tty_driver); 3292} 3293 3294module_init(gsm_init); 3295module_exit(gsm_exit); 3296 3297 3298MODULE_LICENSE("GPL"); 3299MODULE_ALIAS_LDISC(N_GSM0710); |