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

Commit 6a1eaf19 authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: mos7720: always require an interrupt endpoint



This driver have treated the interrupt endpoint as optional despite it
always being present (according to the datasheet). Let's consider it
mandatory instead.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent d760557d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1923,7 +1923,6 @@ static int mos7720_startup(struct usb_serial *serial)
	if (product == MOSCHIP_DEVICE_ID_7715) {
		struct urb *urb = serial->port[0]->interrupt_in_urb;

		if (urb)
		urb->complete = mos7715_interrupt_callback;

#ifdef CONFIG_USB_SERIAL_MOS7715_PARPORT
@@ -2025,6 +2024,7 @@ static struct usb_serial_driver moschip7720_2port_driver = {
	.id_table		= id_table,
	.num_bulk_in		= 2,
	.num_bulk_out		= 2,
	.num_interrupt_in	= 1,
	.calc_num_ports		= mos77xx_calc_num_ports,
	.open			= mos7720_open,
	.close			= mos7720_close,