X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=blobdiff_plain;f=drivers%2Fchar%2Fepca.c;h=17b044a71e026fc8c943de8ea5bf64c852abc75c;hp=ff647ca1c4895d9f08049ea840496b86b40fbf28;hb=1cceefd3a28e54c0777fe544e1fd32253b2a1de5;hpb=405f55712dfe464b3240d7816cc4fe4174831be2 diff --git a/drivers/char/epca.c b/drivers/char/epca.c index ff647ca..17b044a 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -934,7 +935,7 @@ static int info_open(struct tty_struct *tty, struct file *filp) return 0; } -static struct tty_operations info_ops = { +static const struct tty_operations info_ops = { .open = info_open, .ioctl = info_ioctl, }; @@ -2239,7 +2240,7 @@ static void do_softint(struct work_struct *work) struct channel *ch = container_of(work, struct channel, tqueue); /* Called in response to a modem change event */ if (ch && ch->magic == EPCA_MAGIC) { - struct tty_struct *tty = tty_port_tty_get(&ch->port);; + struct tty_struct *tty = tty_port_tty_get(&ch->port); if (tty && tty->driver_data) { if (test_and_clear_bit(EPCA_EVENT_HANGUP, &ch->event)) {