Skip to content

Commit

Permalink
staging: dgnc: rename dgnc_tty_uninit() to dgnc_cleanup_tty()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
daeseokyoun authored and gregkh committed Sep 27, 2016
1 parent 5897914 commit 33ccb44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/dgnc/dgnc_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void cleanup(bool sysfiles)

for (i = 0; i < dgnc_num_boards; ++i) {
dgnc_remove_ports_sysfiles(dgnc_board[i]);
dgnc_tty_uninit(dgnc_board[i]);
dgnc_cleanup_tty(dgnc_board[i]);
dgnc_cleanup_board(dgnc_board[i]);
}

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/dgnc/dgnc_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ void dgnc_tty_post_uninit(void)
}

/*
* dgnc_tty_uninit()
* dgnc_cleanup_tty()
*
* Uninitialize the TTY portion of this driver. Free all memory and
* resources.
*/
void dgnc_tty_uninit(struct dgnc_board *brd)
void dgnc_cleanup_tty(struct dgnc_board *brd)
{
int i = 0;

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/dgnc/dgnc_tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int dgnc_tty_preinit(void);
int dgnc_tty_init(struct dgnc_board *);

void dgnc_tty_post_uninit(void);
void dgnc_tty_uninit(struct dgnc_board *);
void dgnc_cleanup_tty(struct dgnc_board *);

void dgnc_input(struct channel_t *ch);
void dgnc_carrier(struct channel_t *ch);
Expand Down

0 comments on commit 33ccb44

Please sign in to comment.