Skip to content

Commit

Permalink
dfu: nand: Add missing dependency on CMD_MTDPARTS
Browse files Browse the repository at this point in the history
dfu_fill_entity_nand() uses find_dev_and_part() and mtdparts_init()
which are provided by cmd/mtdparts.c.

Add the dependency to avoid build failures when CMD_MTDPARTS is not
selected.

Reported-by: Jagan Teki <[email protected]>
Fixes: 6828e60 ("dfu: Migrate to Kconfig")
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
  • Loading branch information
Boris Brezillon authored and openedev committed Nov 13, 2018
1 parent 5ffcd50 commit 96c2961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dfu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ config DFU_MMC

config DFU_NAND
bool "NAND back end for DFU"
depends on CMD_MTDPARTS
help
This option enables using DFU to read and write to NAND based
storage.
Expand Down

0 comments on commit 96c2961

Please sign in to comment.