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/pcmcia | |
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/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/pcmcia/ipwireless/tty.c b/drivers/char/pcmcia/ipwireless/tty.c index 748190dfbab0..ef92869502a7 100644 --- a/drivers/char/pcmcia/ipwireless/tty.c +++ b/drivers/char/pcmcia/ipwireless/tty.c | |||
@@ -425,7 +425,7 @@ ipw_tiocmset(struct tty_struct *linux_tty, | |||
425 | return set_control_lines(tty, set, clear); | 425 | return set_control_lines(tty, set, clear); |
426 | } | 426 | } |
427 | 427 | ||
428 | static int ipw_ioctl(struct tty_struct *linux_tty, struct file *file, | 428 | static int ipw_ioctl(struct tty_struct *linux_tty, |
429 | unsigned int cmd, unsigned long arg) | 429 | unsigned int cmd, unsigned long arg) |
430 | { | 430 | { |
431 | struct ipw_tty *tty = linux_tty->driver_data; | 431 | struct ipw_tty *tty = linux_tty->driver_data; |
@@ -484,7 +484,7 @@ static int ipw_ioctl(struct tty_struct *linux_tty, struct file *file, | |||
484 | return tty_perform_flush(linux_tty, arg); | 484 | return tty_perform_flush(linux_tty, arg); |
485 | } | 485 | } |
486 | } | 486 | } |
487 | return tty_mode_ioctl(linux_tty, file, cmd , arg); | 487 | return -ENOIOCTLCMD; |
488 | } | 488 | } |
489 | 489 | ||
490 | static int add_tty(int j, | 490 | static int add_tty(int j, |