Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiang Lu and committed by
Artem Bityutskiy
cf38aca5 719bb840

+1 -1
+1 -1
drivers/mtd/ubi/build.c
··· 1261 1261 ubi_err("UBI error: cannot initialize UBI, error %d", err); 1262 1262 return err; 1263 1263 } 1264 - module_init(ubi_init); 1264 + late_initcall(ubi_init); 1265 1265 1266 1266 static void __exit ubi_exit(void) 1267 1267 {