]> git.sur5r.net Git - u-boot/commitdiff
spl: Make UBI fastmap support Kconfig selectable
authorLadislav Michl <ladis@linux-mips.org>
Sun, 25 Jun 2017 08:26:11 +0000 (10:26 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 6 Jul 2017 17:09:37 +0000 (13:09 -0400)
Fastmap was always enabled in ubispl, make it selectable by
CONFIG_MTD_UBI_FASTMAP.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Heiko Schocher <hs@denx.de>
common/spl/spl_ubi.c

index 24633f4766e56172b06a7c74c1e030303a647e7f..83089335a7887714cdb572d26bd2dac5ed98d445 100644 (file)
@@ -38,7 +38,7 @@ int spl_ubi_load_image(struct spl_image_info *spl_image,
                goto out;
        }
        info.ubi = (struct ubi_scan_info *)CONFIG_SPL_UBI_INFO_ADDR;
-       info.fastmap = 1;
+       info.fastmap = IS_ENABLED(CONFIG_MTD_UBI_FASTMAP);
 
        info.peb_offset = CONFIG_SPL_UBI_PEB_OFFSET;
        info.vid_offset = CONFIG_SPL_UBI_VID_OFFSET;