Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9dea3c1 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman
Browse files

Staging: serqt_usb2: fix qt_close parameters in serqt_usb2



The parameter list for qt_close() was from the old non usb-serial
driver.

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9b5de0a0
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1041,17 +1041,19 @@ static void qt_block_until_empty(struct tty_struct *tty,
	}
	}
}
}


static void qt_close(struct tty_struct *tty, struct usb_serial_port *port,
static void qt_close( struct usb_serial_port *port)
		     struct file *filp)
{
{
	struct usb_serial *serial = port->serial;
	struct usb_serial *serial = port->serial;
	struct quatech_port *qt_port;
	struct quatech_port *qt_port;
	struct quatech_port *port0;
	struct quatech_port *port0;
	struct tty_struct *tty;
	int status;
	int status;
	unsigned int index;
	unsigned int index;
	status = 0;
	status = 0;


	dbg("%s - port %d\n", __func__, port->number);
	dbg("%s - port %d\n", __func__, port->number);

	tty = tty_port_tty_get(&port->port);
	index = tty->index - serial->minor;
	index = tty->index - serial->minor;


	qt_port = qt_get_port_private(port);
	qt_port = qt_get_port_private(port);