Patch from anders.blomdell@control.lth.se (Anders Blomdell):
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 21 Nov 2005 00:24:33 +0000 (00:24 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 21 Nov 2005 00:24:33 +0000 (00:24 +0000)
make poll point to the right subfield

comedi/drivers/serial2002.c

index 4a2469bc7cf65e976c875f96592ac8ecee25fa99..c03a3545b032850c4028ee8d928a1c38629e0326 100644 (file)
@@ -159,7 +159,7 @@ static int tty_read(struct file *f, int timeout)
        long elapsed;
        int mask;
 
-       mask = f->f_op->poll(f, &table);
+       mask = f->f_op->poll(f, &table.pt);
        if (mask & (POLLRDNORM|POLLRDBAND|POLLIN|POLLHUP|POLLERR)) { break; }
        do_gettimeofday(&now);
        elapsed = (1000000 * (now.tv_sec - start.tv_sec) +