diff options
| author | Hanna V. Linder <hannal@us.ibm.com> | 2003-05-07 01:01:52 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-05-07 01:01:52 -0700 |
| commit | 5fa62d1f2e4ad8ec1da9ecc2f9d0bdcf7f841c3e (patch) | |
| tree | a6daf6a827ee223e80b8579989cc3619ca8b57a5 | |
| parent | d1a3b250c5aed61da42ecbca5592ae652d4afead (diff) | |
[PATCH] macintosh/macserial tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
| -rw-r--r-- | drivers/macintosh/macserial.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/macintosh/macserial.c b/drivers/macintosh/macserial.c index 956559ee4714..06d0ac4950fa 100644 --- a/drivers/macintosh/macserial.c +++ b/drivers/macintosh/macserial.c @@ -1932,7 +1932,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp) spin_lock_irqsave(&info->lock, flags); if (tty_hung_up_p(filp)) { - MOD_DEC_USE_COUNT; spin_unlock_irqrestore(&info->lock, flags); return; } @@ -1956,7 +1955,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp) info->count = 0; } if (info->count) { - MOD_DEC_USE_COUNT; spin_unlock_irqrestore(&info->lock, flags); return; } @@ -2026,7 +2024,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp) info->flags &= ~(ZILOG_NORMAL_ACTIVE|ZILOG_CALLOUT_ACTIVE| ZILOG_CLOSING); wake_up_interruptible(&info->close_wait); - MOD_DEC_USE_COUNT; } /* @@ -2233,17 +2230,14 @@ static int rs_open(struct tty_struct *tty, struct file * filp) int retval, line; unsigned long page; - MOD_INC_USE_COUNT; line = tty->index; if ((line < 0) || (line >= zs_channels_found)) { - MOD_DEC_USE_COUNT; return -ENODEV; } info = zs_soft + line; #ifdef CONFIG_KGDB if (info->kgdb_channel) { - MOD_DEC_USE_COUNT; return -ENODEV; } #endif @@ -2610,6 +2604,7 @@ no_dma: memset(&serial_driver, 0, sizeof(struct tty_driver)); serial_driver.magic = TTY_DRIVER_MAGIC; + serial_driver.owner = THIS_MODULE; serial_driver.driver_name = "macserial"; #ifdef CONFIG_DEVFS_FS serial_driver.name = "tts/"; |
