diff options
author | Benoit Goby <benoit@android.com> | 2011-12-14 18:04:07 -0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-04-16 06:28:10 +0800 |
commit | 0066d6dffd8e934fa9303d9ab5705d4b122bc0af (patch) | |
tree | 36fe2d62fd70aea1365ade85986179d02b0754c1 | |
parent | 06e77f307da03c0cb63df30ff146792e82d3b700 (diff) | |
download | panda-0066d6dffd8e934fa9303d9ab5705d4b122bc0af.tar.gz |
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: Benoit Goby <benoit@android.com>
-rw-r--r-- | drivers/usb/gadget/u_serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c index 6597a6813e4..2ce66bff5f2 100644 --- a/drivers/usb/gadget/u_serial.c +++ b/drivers/usb/gadget/u_serial.c @@ -1028,7 +1028,7 @@ static const struct tty_operations gs_tty_ops = { static struct tty_driver *gs_tty_driver; -static int __init +static int gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) { struct gs_port *port; @@ -1074,7 +1074,7 @@ gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) * * 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; struct usb_cdc_line_coding coding; |