Commit 4d63a5ec authored by Daniele Bellucci's avatar Daniele Bellucci Committed by Greg Kroah-Hartman

[PATCH] USB: PATCH 12/19 Audit usb_register/usb_serial_register under divers/usb/serial

parent 7334aeed
...@@ -1037,11 +1037,20 @@ static void klsi_105_unthrottle (struct usb_serial_port *port) ...@@ -1037,11 +1037,20 @@ static void klsi_105_unthrottle (struct usb_serial_port *port)
static int __init klsi_105_init (void) static int __init klsi_105_init (void)
{ {
usb_serial_register (&kl5kusb105d_device); int retval;
usb_register (&kl5kusb105d_driver); retval = usb_serial_register(&kl5kusb105d_device);
if (retval)
goto failed_usb_serial_register;
retval = usb_register(&kl5kusb105d_driver);
if (retval)
goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); info(DRIVER_DESC " " DRIVER_VERSION);
return 0; return 0;
failed_usb_register:
usb_serial_deregister(&kl5kusb105d_device);
failed_usb_serial_register:
return retval;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment