From: Jiang Lu Date: Wed, 8 Aug 2012 02:31:01 +0000 (+0800) Subject: UBI: load after mtd device drivers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf38aca520741ccdc1365efbef5a4cab33b0a4ac;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git UBI: load after mtd device drivers Use 'late_initcall()' in UBI to make sure it initializes after MTD drivers. Signed-off-by: Jiang Lu Signed-off-by: Artem Bityutskiy --- 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) {