struct aim_channel {
wait_queue_head_t wq;
- wait_queue_head_t poll_wq;
struct cdev cdev;
struct device *dev;
struct mutex io_mutex;
struct aim_channel *c = filp->private_data;
unsigned int mask = 0;
- poll_wait(filp, &c->poll_wq, wait);
+ poll_wait(filp, &c->wq, wait);
if (c->cfg->direction == MOST_CH_RX) {
if (!kfifo_is_empty(&c->fifo))
goto error_alloc_kfifo;
}
init_waitqueue_head(&channel->wq);
- init_waitqueue_head(&channel->poll_wq);
mutex_init(&channel->io_mutex);
spin_lock_irqsave(&ch_list_lock, cl_flags);
list_add_tail(&channel->list, &channel_list);