diff options
author | Jiang Lu <lu.jiang@windriver.com> | 2012-08-07 22:31:01 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-09-26 06:22:44 -0400 |
commit | cf38aca520741ccdc1365efbef5a4cab33b0a4ac (patch) | |
tree | 69695690819d326dee7af66bc92a9e67ad0c5019 | |
parent | 719bb84017fcfc949a77e150dd5b045e90a4ebc9 (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.c | 2 |
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 | } |
1264 | module_init(ubi_init); | 1264 | late_initcall(ubi_init); |
1265 | 1265 | ||
1266 | static void __exit ubi_exit(void) | 1266 | static void __exit ubi_exit(void) |
1267 | { | 1267 | { |