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/char/stallion.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/char/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index c42dbffbed16..4fff5cd3b163 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
@@ -1132,14 +1132,13 @@ static int stl_tiocmset(struct tty_struct *tty, | |||
1132 | return 0; | 1132 | return 0; |
1133 | } | 1133 | } |
1134 | 1134 | ||
1135 | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) | 1135 | static int stl_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) |
1136 | { | 1136 | { |
1137 | struct stlport *portp; | 1137 | struct stlport *portp; |
1138 | int rc; | 1138 | int rc; |
1139 | void __user *argp = (void __user *)arg; | 1139 | void __user *argp = (void __user *)arg; |
1140 | 1140 | ||
1141 | pr_debug("stl_ioctl(tty=%p,file=%p,cmd=%x,arg=%lx)\n", tty, file, cmd, | 1141 | pr_debug("stl_ioctl(tty=%p,cmd=%x,arg=%lx)\n", tty, cmd, arg); |
1142 | arg); | ||
1143 | 1142 | ||
1144 | portp = tty->driver_data; | 1143 | portp = tty->driver_data; |
1145 | if (portp == NULL) | 1144 | if (portp == NULL) |