lkml.org 
[lkml]   [2003]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] TTY changes for 2.5.69
From
Date
ChangeSet 1.1097, 2003/05/07 14:59:22-07:00, hannal@us.ibm.com

[PATCH] rocket tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT


drivers/char/rocket.c | 10 +---------
1 files changed, 1 insertion(+), 9 deletions(-)


diff -Nru a/drivers/char/rocket.c b/drivers/char/rocket.c
--- a/drivers/char/rocket.c Wed May 7 16:01:23 2003
+++ b/drivers/char/rocket.c Wed May 7 16:01:23 2003
@@ -874,9 +874,6 @@
}

if (info->count++ == 0) {
-#ifdef MODULE
- MOD_INC_USE_COUNT;
-#endif
rp_num_ports_open++;
#ifdef ROCKET_DEBUG_OPEN
printk("rocket mod++ = %d...", rp_num_ports_open);
@@ -1071,9 +1068,6 @@
tty->closing = 0;
wake_up_interruptible(&info->close_wait);

-#ifdef MODULE
- MOD_DEC_USE_COUNT;
-#endif
rp_num_ports_open--;
#ifdef ROCKET_DEBUG_OPEN
printk("rocket mod-- = %d...", rp_num_ports_open);
@@ -1504,9 +1498,6 @@
return;
}
if (info->count) {
-#ifdef MODULE
- MOD_DEC_USE_COUNT;
-#endif
rp_num_ports_open--;
}

@@ -2012,6 +2003,7 @@
*/
memset(&rocket_driver, 0, sizeof(struct tty_driver));
rocket_driver.magic = TTY_DRIVER_MAGIC;
+ rocket_driver.owner = THIS_MODULE;
#ifdef CONFIG_DEVFS_FS
rocket_driver.name = "tts/R";
#else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.087 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site