Commit cf38aca5 authored by Jiang Lu's avatar Jiang Lu Committed by Artem Bityutskiy

UBI: load after mtd device drivers

Use 'late_initcall()' in UBI to make sure it initializes after MTD drivers.
Signed-off-by: default avatarJiang Lu <lu.jiang@windriver.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 719bb840
...@@ -1261,7 +1261,7 @@ static int __init ubi_init(void) ...@@ -1261,7 +1261,7 @@ static int __init ubi_init(void)
ubi_err("UBI error: cannot initialize UBI, error %d", err); ubi_err("UBI error: cannot initialize UBI, error %d", err);
return err; return err;
} }
module_init(ubi_init); late_initcall(ubi_init);
static void __exit ubi_exit(void) static void __exit ubi_exit(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment