Commit 68c2ddf7 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] [PATCH 2.5.63] epca tty_driver add .owner field remove MOD_INC_DEC_USE_COUNT

[ Arjan: you touched it last AFAICT.  Seems trivial. --RR ]

From:  Hanna Linder <hannal@us.ibm.com>
parent 07b8a9d6
......@@ -481,9 +481,7 @@ static inline void pc_sched_event(struct channel *ch, int event)
-------------------------------------------------------------------------*/
ch->event |= 1 << event;
MOD_INC_USE_COUNT;
if (schedule_work(&ch->tqueue) == 0)
MOD_DEC_USE_COUNT;
schedule_work(&ch->tqueue);
} /* End pc_sched_event */
......@@ -604,7 +602,6 @@ static void pc_close(struct tty_struct * tty, struct file * filp)
ASYNC_CALLOUT_ACTIVE | ASYNC_CLOSING);
wake_up_interruptible(&ch->close_wait);
MOD_DEC_USE_COUNT;
restore_flags(flags);
......@@ -692,10 +689,6 @@ static void pc_hangup(struct tty_struct *tty)
shutdown(ch);
if (ch->count)
MOD_DEC_USE_COUNT;
ch->tty = NULL;
ch->event = 0;
ch->count = 0;
......@@ -1389,8 +1382,6 @@ static int pc_open(struct tty_struct *tty, struct file * filp)
}
MOD_INC_USE_COUNT;
ch = &digi_channels[line];
boardnum = ch->boardnum;
......@@ -1714,6 +1705,7 @@ int __init pc_init(void)
memset(&pc_info, 0, sizeof(struct tty_driver));
pc_driver.magic = TTY_DRIVER_MAGIC;
pc_driver.owner = THIS_MODULE;
pc_driver.name = "ttyD";
pc_driver.major = DIGI_MAJOR;
pc_driver.minor_start = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment