Commit c3c04b29 authored by Benoit Goby's avatar Benoit Goby Committed by Greg Kroah-Hartman

usb: gadget: u_serial: Allow calling gserial_setup after init

Remove geserial_setup from the init section. The android gadget
driver calls it after probe, after userspace has configured the
gadget driver.
Signed-off-by: default avatarBenoit Goby <benoit@android.com>
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cad4cd8f
...@@ -1025,7 +1025,7 @@ static const struct tty_operations gs_tty_ops = { ...@@ -1025,7 +1025,7 @@ static const struct tty_operations gs_tty_ops = {
static struct tty_driver *gs_tty_driver; static struct tty_driver *gs_tty_driver;
static int __init static int
gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding)
{ {
struct gs_port *port; struct gs_port *port;
...@@ -1071,7 +1071,7 @@ gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) ...@@ -1071,7 +1071,7 @@ gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding)
* *
* Returns negative errno or zero. * Returns negative errno or zero.
*/ */
int __init gserial_setup(struct usb_gadget *g, unsigned count) int gserial_setup(struct usb_gadget *g, unsigned count)
{ {
unsigned i; unsigned i;
struct usb_cdc_line_coding coding; struct usb_cdc_line_coding coding;
......
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