From: Jiang Lu Date: Wed, 8 Aug 2012 02:31:01 +0000 (+0800) Subject: UBI: load after mtd device drivers X-Git-Tag: next-20120927~72^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cf38aca520741ccdc1365efbef5a4cab33b0a4ac;p=karo-tx-linux.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) {