|
@@ -1114,7 +1114,6 @@ int __init gserial_setup(struct usb_gadget *g, unsigned count)
|
|
/* export the driver ... */
|
|
/* export the driver ... */
|
|
status = tty_register_driver(gs_tty_driver);
|
|
status = tty_register_driver(gs_tty_driver);
|
|
if (status) {
|
|
if (status) {
|
|
- put_tty_driver(gs_tty_driver);
|
|
|
|
pr_err("%s: cannot register, err %d\n",
|
|
pr_err("%s: cannot register, err %d\n",
|
|
__func__, status);
|
|
__func__, status);
|
|
goto fail;
|
|
goto fail;
|