From: Arve Hjønnevåg Date: Tue, 5 Mar 2013 03:14:10 +0000 (-0800) Subject: usb: gadget: android: move init to late_initcall for now X-Git-Tag: firefly_0821_release~4090^2~530 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8483afe9dd072489b16a1d8c1e78d0f179219ca3;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c index 60072f3af96c..f5b00c122585 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) {