Skip to contentSkip to conversation

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

PATCH Superseded Daeseok Youn 1 participant 1 message Sep 23, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 9/11 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.

---
V2: the subject line was cut off, I put it completely.

 drivers/staging/dgnc/dgnc_driver.c | 2 +-
 drivers/staging/dgnc/dgnc_tty.c    | 4 ++--
 drivers/staging/dgnc/dgnc_tty.h    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/dgnc/dgnc_driver.c +1 -1
index 81ce5c4..fd372d3 100644
@@ -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]);
 	}
 
drivers/staging/dgnc/dgnc_tty.c +2 -2
index 893f473..5befd28 100644
@@ -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;
 
drivers/staging/dgnc/dgnc_tty.h +1 -1
index f065c8f..24c9a41 100644
@@ -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);
Signature · 1 line
1.9.1