diff options
author | Jiang Lu <lu.jiang@windriver.com> | 2012-08-08 10:31:01 +0800 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-09-26 13:22:44 +0300 |
commit | cf38aca520741ccdc1365efbef5a4cab33b0a4ac (patch) | |
tree | 69695690819d326dee7af66bc92a9e67ad0c5019 /drivers/mtd/ubi/build.c | |
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>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-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 8fd85e32506..34977039850 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -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) { |