From 46773225e8f15c1b0a77defb074a4b1221592f27 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Wed, 19 Oct 2022 17:13:58 +0900 Subject: [PATCH] usb: serial: cp210x: Fix return type to void Fix return type to void for fix build error. Change-Id: I507ea7aa5566ccdda17e69a60cc86ff756f0830a Signed-off-by: Hoegeun Kwon --- drivers/usb/serial/cp210x-stlink.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/serial/cp210x-stlink.c b/drivers/usb/serial/cp210x-stlink.c index 19bad5d..ee7ac85 100644 --- a/drivers/usb/serial/cp210x-stlink.c +++ b/drivers/usb/serial/cp210x-stlink.c @@ -44,7 +44,7 @@ static int cp210x_tiocmset_port(struct usb_serial_port *port, unsigned int, unsigned int); static void cp210x_break_ctl(struct tty_struct *, int); static int cp210x_port_probe(struct usb_serial_port *); -static int cp210x_port_remove(struct usb_serial_port *); +static void cp210x_port_remove(struct usb_serial_port *); static void cp210x_dtr_rts(struct usb_serial_port *p, int on); static const struct usb_device_id id_table[] = { @@ -1311,14 +1311,12 @@ static int cp210x_port_probe(struct usb_serial_port *port) return 0; } -static int cp210x_port_remove(struct usb_serial_port *port) +static void cp210x_port_remove(struct usb_serial_port *port) { struct cp210x_port_private *port_priv; port_priv = usb_get_serial_port_data(port); kfree(port_priv); - - return 0; } module_usb_serial_driver(serial_drivers, id_table); -- 2.7.4