diff options
Diffstat (limited to 'drivers/tc/zs.c')
-rw-r--r-- | drivers/tc/zs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tc/zs.c b/drivers/tc/zs.c index 887fea87f..84111ee1a 100644 --- a/drivers/tc/zs.c +++ b/drivers/tc/zs.c @@ -155,7 +155,7 @@ static struct termios *serial_termios_locked[NUM_CHANNELS]; * memory if large numbers of serial ports are open. */ static unsigned char tmp_buf[4096]; /* This is cheating */ -static struct semaphore tmp_buf_sem = MUTEX; +static DECLARE_MUTEX(tmp_buf_sem); static inline int serial_paranoia_check(struct dec_serial *info, dev_t device, const char *routine) @@ -1352,7 +1352,7 @@ void rs_hangup(struct tty_struct *tty) static int block_til_ready(struct tty_struct *tty, struct file * filp, struct dec_serial *info) { - struct wait_queue wait = { current, NULL }; + DECLARE_WAITQUEUE(wait, current); int retval; int do_clocal = 0; @@ -1774,8 +1774,8 @@ __initfunc(int zs_init(void)) info->tqueue.data = info; info->callout_termios =callout_driver.init_termios; info->normal_termios = serial_driver.init_termios; - info->open_wait = 0; - info->close_wait = 0; + init_waitqueue_head(&info->open_wait); + init_waitqueue_head(&info->close_wait); printk("tty%02d at 0x%08x (irq = %d)", info->line, info->port, info->irq); printk(" is a Z85C30 SCC\n"); |