diff options
author | Alan Cox <alan@linux.intel.com> | 2011-02-14 11:27:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-17 14:59:56 -0500 |
commit | 6caa76b7786891b42b66a0e61e2c2fff2c884620 (patch) | |
tree | eb6e387e080a44680d6d8686999336e69ec97e71 /drivers/tty/tty_io.c | |
parent | 00a0d0d65b61241a718d0aee96f46b9a2d93bf26 (diff) |
tty: now phase out the ioctl file pointer for good
Only oddities here are a couple of drivers that bogusly called the ldisc
helpers instead of returning -ENOIOCTLCMD. Fix the bug and the rest goes
away.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 83af24ca1e5e..20a862a2a0c2 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c | |||
@@ -2676,7 +2676,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
2676 | break; | 2676 | break; |
2677 | } | 2677 | } |
2678 | if (tty->ops->ioctl) { | 2678 | if (tty->ops->ioctl) { |
2679 | retval = (tty->ops->ioctl)(tty, file, cmd, arg); | 2679 | retval = (tty->ops->ioctl)(tty, cmd, arg); |
2680 | if (retval != -ENOIOCTLCMD) | 2680 | if (retval != -ENOIOCTLCMD) |
2681 | return retval; | 2681 | return retval; |
2682 | } | 2682 | } |
@@ -2704,7 +2704,7 @@ static long tty_compat_ioctl(struct file *file, unsigned int cmd, | |||
2704 | return -EINVAL; | 2704 | return -EINVAL; |
2705 | 2705 | ||
2706 | if (tty->ops->compat_ioctl) { | 2706 | if (tty->ops->compat_ioctl) { |
2707 | retval = (tty->ops->compat_ioctl)(tty, file, cmd, arg); | 2707 | retval = (tty->ops->compat_ioctl)(tty, cmd, arg); |
2708 | if (retval != -ENOIOCTLCMD) | 2708 | if (retval != -ENOIOCTLCMD) |
2709 | return retval; | 2709 | return retval; |
2710 | } | 2710 | } |