fdt_support: make FDT_FIXUP_PARTITIONS depend on CMD_MTDPARTS
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 20 Jul 2018 02:04:09 +0000 (11:04 +0900)
committerSimon Glass <sjg@chromium.org>
Thu, 26 Jul 2018 20:20:27 +0000 (14:20 -0600)
commitab948cd21d25ba2f54832fc98a59eea90e680eba
tree26768f4139dbd01d486a2b3a3984c913c06d3113
parent452bc121027df6bc5ad59e25db8c6b0a4ecbe8a4
fdt_support: make FDT_FIXUP_PARTITIONS depend on CMD_MTDPARTS

fdt_fixup_mtdparts() calls mtdparts_init() and device_find(),
which are defined in cmd/mtdparts.c

The combination of FDT_FIXUP_PARTITIONS=y and CMD_MTDPARTS=n
emits the following link error:

  common/fdt_support.c:903: undefined reference to `mtdparts_init'
  common/fdt_support.c:914: undefined reference to `device_find'

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/Kconfig