aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiang Lu <lu.jiang@windriver.com>2012-08-07 22:31:01 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-26 06:22:44 -0400
commitcf38aca520741ccdc1365efbef5a4cab33b0a4ac (patch)
tree69695690819d326dee7af66bc92a9e67ad0c5019
parent719bb84017fcfc949a77e150dd5b045e90a4ebc9 (diff)
UBI: load after mtd device drivers
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>
-rw-r--r--drivers/mtd/ubi/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 8fd85e32506a..34977039850c 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1261,7 +1261,7 @@ out:
1261 ubi_err("UBI error: cannot initialize UBI, error %d", err); 1261 ubi_err("UBI error: cannot initialize UBI, error %d", err);
1262 return err; 1262 return err;
1263} 1263}
1264module_init(ubi_init); 1264late_initcall(ubi_init);
1265 1265
1266static void __exit ubi_exit(void) 1266static void __exit ubi_exit(void)
1267{ 1267{