aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2013-03-04 19:14:10 -0800
committerArve Hjønnevåg <arve@android.com>2013-04-29 14:52:32 -0700
commitd8fb3c8036725efafc3727d873b3f84bd9488150 (patch)
tree8bd0b0d3c11d2cb583c527ba911f94ec400c2a1c
parent4085500d1d11c707b425eec4baa53e80124170d3 (diff)
downloadlinaro-lsk-d8fb3c8036725efafc3727d873b3f84bd9488150.tar.gz
usb: gadget: android: move init to late_initcall for now
gserial_alloc_line crashes when called from module_init Signed-off-by: Arve Hjønnevåg <arve@android.com>
-rw-r--r--drivers/usb/gadget/android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c
index 60072f3af96..f5b00c12258 100644
--- a/drivers/usb/gadget/android.c
+++ b/drivers/usb/gadget/android.c
@@ -1472,7 +1472,7 @@ err_dev:
class_destroy(android_class);
return err;
}
-module_init(init);
+late_initcall(init);
static void __exit cleanup(void)
{