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-07-01 15:51:57 -0700
commit8483afe9dd072489b16a1d8c1e78d0f179219ca3 (patch)
tree96226583ccf68501872ab21ef59f5f29e50b35fa
parentbdc4b525835fed4ce877cb8669797d5f6599d594 (diff)
downloadvexpress-lsk-8483afe9dd072489b16a1d8c1e78d0f179219ca3.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)
{