Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dgnc: rename dgnc_tty_uninit() to dgnc_cleanup_tty()

The dgnc_tty_uninit() doesn't match with dgnc_tty_init() at all.
And also the dgnc_cleanup_tty() is only called for exiting the module.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Daeseok Youn and committed by
Greg Kroah-Hartman
33ccb442 5897914f

+4 -4
+1 -1
drivers/staging/dgnc/dgnc_driver.c
··· 147 147 148 148 for (i = 0; i < dgnc_num_boards; ++i) { 149 149 dgnc_remove_ports_sysfiles(dgnc_board[i]); 150 - dgnc_tty_uninit(dgnc_board[i]); 150 + dgnc_cleanup_tty(dgnc_board[i]); 151 151 dgnc_cleanup_board(dgnc_board[i]); 152 152 } 153 153
+2 -2
drivers/staging/dgnc/dgnc_tty.c
··· 387 387 } 388 388 389 389 /* 390 - * dgnc_tty_uninit() 390 + * dgnc_cleanup_tty() 391 391 * 392 392 * Uninitialize the TTY portion of this driver. Free all memory and 393 393 * resources. 394 394 */ 395 - void dgnc_tty_uninit(struct dgnc_board *brd) 395 + void dgnc_cleanup_tty(struct dgnc_board *brd) 396 396 { 397 397 int i = 0; 398 398
+1 -1
drivers/staging/dgnc/dgnc_tty.h
··· 25 25 int dgnc_tty_init(struct dgnc_board *); 26 26 27 27 void dgnc_tty_post_uninit(void); 28 - void dgnc_tty_uninit(struct dgnc_board *); 28 + void dgnc_cleanup_tty(struct dgnc_board *); 29 29 30 30 void dgnc_input(struct channel_t *ch); 31 31 void dgnc_carrier(struct channel_t *ch);