From: Ladislav Michl Date: Sun, 25 Jun 2017 08:26:11 +0000 (+0200) Subject: spl: Make UBI fastmap support Kconfig selectable X-Git-Tag: v2017.07~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ffc282e1995f7f8b84019ebeb1e29cfa733ba25d;p=u-boot spl: Make UBI fastmap support Kconfig selectable Fastmap was always enabled in ubispl, make it selectable by CONFIG_MTD_UBI_FASTMAP. Signed-off-by: Ladislav Michl Acked-by: Heiko Schocher --- diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c index 24633f4766..83089335a7 100644 --- a/common/spl/spl_ubi.c +++ b/common/spl/spl_ubi.c @@ -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;