staging: dgnc: rename dgnc_tty_uninit() to dgnc_cleanup_tty()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 26 Sep 2016 00:46:12 +0000 (09:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:12:26 +0000 (13:12 +0200)
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>
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/dgnc/dgnc_tty.c
drivers/staging/dgnc/dgnc_tty.h

index 81ce5c4755c371033fdd574bb87faccb7847c373..fd372d3afa465f609cae7cfa5213c4f0dbf7fa54 100644 (file)
@@ -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]);
        }
 
index 4f781955726b3f5f21e2f1a341afe032d82176f7..673c455ea330892d3887ad3d5ded3da388ef8518 100644 (file)
@@ -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;
 
index f065c8fff1b0ee45ee50baf6cf8d0ccbfde1bcfa..24c9a412211e55eadb505d222d7f4941df1f33aa 100644 (file)
@@ -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);