tiocmget: kill off the passing of the struct file
[pandora-kernel.git] / drivers / char / epca.c
index d9df46a..ecf6f0a 100644 (file)
@@ -1982,7 +1982,7 @@ static int info_ioctl(struct tty_struct *tty, struct file *file,
        return 0;
 }
 
-static int pc_tiocmget(struct tty_struct *tty, struct file *file)
+static int pc_tiocmget(struct tty_struct *tty)
 {
        struct channel *ch = tty->driver_data;
        struct board_chan __iomem *bc;
@@ -2074,7 +2074,7 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
                return -EINVAL;
        switch (cmd) {
        case TIOCMODG:
-               mflag = pc_tiocmget(tty, file);
+               mflag = pc_tiocmget(tty);
                if (put_user(mflag, (unsigned long __user *)argp))
                        return -EFAULT;
                break;