Skip to content

Commit

Permalink
UBI: load after mtd device drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiang Lu authored and Artem Bityutskiy committed Sep 26, 2012
1 parent 719bb84 commit cf38aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ static int __init ubi_init(void)
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)
{
Expand Down

0 comments on commit cf38aca

Please sign in to comment.