usb: gadget: android: move init to late_initcall for now
authorArve Hjønnevåg <arve@android.com>
Tue, 5 Mar 2013 03:14:10 +0000 (19:14 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 22:51:57 +0000 (15:51 -0700)
gserial_alloc_line crashes when called from module_init

Signed-off-by: Arve Hjønnevåg <arve@android.com>
drivers/usb/gadget/android.c

index 60072f3af96c8a05b67e86bfa79d47e9813e0553..f5b00c122585934ab163a2eb1e2af7397ea0b5d5 100644 (file)
@@ -1472,7 +1472,7 @@ err_dev:
        class_destroy(android_class);
        return err;
 }
-module_init(init);
+late_initcall(init);
 
 static void __exit cleanup(void)
 {