]> git.karo-electronics.de Git - linux-beck.git/commitdiff
UBI: Fastmap: Make self_check_eba() depend on fastmap self checking
authorRichard Weinberger <richard@nod.at>
Mon, 27 Oct 2014 12:00:26 +0000 (13:00 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 21:46:05 +0000 (22:46 +0100)
...instead of generic self checking.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/attach.c

index 5d89b3fb1d3cdf00c4ff2d26dfac51f2886e0d76..42d465add3859101d12548e139b9642b2094dded 100644 (file)
@@ -1458,7 +1458,7 @@ int ubi_attach(struct ubi_device *ubi, int force_scan)
                goto out_wl;
 
 #ifdef CONFIG_MTD_UBI_FASTMAP
-       if (ubi->fm && ubi_dbg_chk_gen(ubi)) {
+       if (ubi->fm && ubi_dbg_chk_fastmap(ubi)) {
                struct ubi_attach_info *scan_ai;
 
                scan_ai = alloc_ai();