summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2017-06-25 08:26:11 (GMT)
committerTom Rini <trini@konsulko.com>2017-07-06 17:09:37 (GMT)
commitffc282e1995f7f8b84019ebeb1e29cfa733ba25d (patch)
tree861e28ae7a88e8a3afaccfa958d1c0b4ac08658f /common
parentcb86d3746a4a3f74142ca25f5a21848d5c2b5b55 (diff)
downloadu-boot-ffc282e1995f7f8b84019ebeb1e29cfa733ba25d.tar.xz
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 <ladis@linux-mips.org> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_ubi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c
index 24633f4..8308933 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;