summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJiang Lu <lu.jiang@windriver.com>2012-08-08 10:31:01 +0800
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-26 13:22:44 +0300
commitcf38aca520741ccdc1365efbef5a4cab33b0a4ac (patch)
tree69695690819d326dee7af66bc92a9e67ad0c5019 /drivers/mtd
parent719bb84017fcfc949a77e150dd5b045e90a4ebc9 (diff)
downloadlinux-cf38aca520741ccdc1365efbef5a4cab33b0a4ac.tar.bz2
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')
-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:
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)
{