diff options
author | Alan Cox <alan@redhat.com> | 2007-11-07 12:27:34 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-11-07 15:14:24 +0300 |
commit | d0127539ea9b5fcfe1a1d7d4d57f12384da5190c (patch) | |
tree | ea533cf6c337c9d2fdd9641fb6e67bf895e3b5c8 /drivers/net/irda | |
parent | 0fc00e2440b717e19bab1ae0015f03936bdf7967 (diff) | |
download | linux-d0127539ea9b5fcfe1a1d7d4d57f12384da5190c.tar.xz |
[TTY]: Use tty_mode_ioctl() in network drivers.
We conciously make a change here - we permit mode and speed setting to
be done in things like SLIP mode. There isn't actually a technical
reason to disallow this. It's usually a silly thing to do but we can
do it and soemone might wish to do so.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/irtty-sir.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/irda/irtty-sir.c b/drivers/net/irda/irtty-sir.c index 2c6f7be36e8a..fc753d7f674e 100644 --- a/drivers/net/irda/irtty-sir.c +++ b/drivers/net/irda/irtty-sir.c @@ -434,11 +434,6 @@ static int irtty_ioctl(struct tty_struct *tty, struct file *file, unsigned int c IRDA_ASSERT(dev != NULL, return -1;); switch (cmd) { - case TCGETS: - case TCGETA: - err = n_tty_ioctl(tty, file, cmd, arg); - break; - case IRTTY_IOCTDONGLE: /* this call blocks for completion */ err = sirdev_set_dongle(dev, (IRDA_DONGLE) arg); @@ -454,7 +449,7 @@ static int irtty_ioctl(struct tty_struct *tty, struct file *file, unsigned int c err = -EFAULT; break; default: - err = -ENOIOCTLCMD; + err = tty_mode_ioctl(tty, file, cmd, arg); break; } return err; |