summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
authorJiang Lu <lu.jiang@windriver.com>2012-08-08 04:31:01 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-26 12:22:44 +0200
commitcf38aca520741ccdc1365efbef5a4cab33b0a4ac (patch)
tree69695690819d326dee7af66bc92a9e67ad0c5019 /drivers/mtd/ubi/build.c
parentUBI: print less (diff)
downloadlinux-cf38aca520741ccdc1365efbef5a4cab33b0a4ac.tar.xz
linux-cf38aca520741ccdc1365efbef5a4cab33b0a4ac.zip
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.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)
{