UBI: load after mtd device drivers
authorJiang Lu <lu.jiang@windriver.com>
Wed, 8 Aug 2012 02:31:01 +0000 (10:31 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 26 Sep 2012 10:22:44 +0000 (13:22 +0300)
Use 'late_initcall()' in UBI to make sure it initializes after MTD drivers.

Signed-off-by: Jiang Lu <lu.jiang@windriver.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/build.c

index 8fd85e32506a15783891ba396197c2f316b90cee..34977039850c033986285b8e207d66a653c4a791 100644 (file)
@@ -1261,7 +1261,7 @@ out:
        ubi_err("UBI error: cannot initialize UBI, error %d", err);
        return err;
 }
-module_init(ubi_init);
+late_initcall(ubi_init);
 
 static void __exit ubi_exit(void)
 {