Commit 439f8d2a authored by Daniele Bellucci's avatar Daniele Bellucci Committed by Greg Kroah-Hartman

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

parent da012eaf
...@@ -375,10 +375,19 @@ static void omninet_shutdown (struct usb_serial *serial) ...@@ -375,10 +375,19 @@ static void omninet_shutdown (struct usb_serial *serial)
static int __init omninet_init (void) static int __init omninet_init (void)
{ {
usb_serial_register (&zyxel_omninet_device); int retval;
usb_register (&omninet_driver); retval = usb_serial_register(&zyxel_omninet_device);
if (retval)
goto failed_usb_serial_register;
retval = usb_register(&omninet_driver);
if (retval)
goto failed_usb_register;
info(DRIVER_VERSION ":" DRIVER_DESC); info(DRIVER_VERSION ":" DRIVER_DESC);
return 0; return 0;
failed_usb_register:
usb_serial_deregister(&zyxel_omninet_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