Skip to content

Commit

Permalink
[S390] con3215: remove empty ioctl function
Browse files Browse the repository at this point in the history
...instead of adding a compat ioctl function which would do nothing
as well.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 13, 2010
1 parent f8b0685 commit 7b475d5
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions drivers/s390/char/con3215.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,22 +1036,6 @@ static void tty3215_flush_buffer(struct tty_struct *tty)
tty_wakeup(tty);
}

/*
* Currently we don't have any io controls for 3215 ttys
*/
static int tty3215_ioctl(struct tty_struct *tty, struct file * file,
unsigned int cmd, unsigned long arg)
{
if (tty->flags & (1 << TTY_IO_ERROR))
return -EIO;

switch (cmd) {
default:
return -ENOIOCTLCMD;
}
return 0;
}

/*
* Disable reading from a 3215 tty
*/
Expand Down Expand Up @@ -1117,7 +1101,6 @@ static const struct tty_operations tty3215_ops = {
.write_room = tty3215_write_room,
.chars_in_buffer = tty3215_chars_in_buffer,
.flush_buffer = tty3215_flush_buffer,
.ioctl = tty3215_ioctl,
.throttle = tty3215_throttle,
.unthrottle = tty3215_unthrottle,
.stop = tty3215_stop,
Expand Down

0 comments on commit 7b475d5

Please sign in to comment.