projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cad4cd8
)
usb: gadget: u_serial: Allow calling gserial_setup after init
author
Benoit Goby
<
[email protected]
>
Thu, 10 May 2012 08:08:01 +0000
(10:08 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 10 May 2012 19:26:17 +0000
(12:26 -0700)
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 <
[email protected]
>
Signed-off-by: Andrzej Pietrasiewicz <
[email protected]
>
Signed-off-by: Kyungmin Park <
[email protected]
>
Acked-by: Michal Nazarewicz <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/gadget/u_serial.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/u_serial.c
b/drivers/usb/gadget/u_serial.c
index 6c23938d2711aee943637b1d20db1cd385d05d41..380a87f6e56c326cb0b1fc74cf4b994af7901632 100644
(file)
--- a/
drivers/usb/gadget/u_serial.c
+++ b/
drivers/usb/gadget/u_serial.c
@@
-1025,7
+1025,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;
@@
-1071,7
+1071,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;