Correct SPL uses of MTD

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_MTD defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-02-05 15:40:17 -07:00 committed by Tom Rini
parent a867392791
commit 0ab3609061
2 changed files with 2 additions and 2 deletions

View file

@ -1748,7 +1748,7 @@ static void stm32prog_end_phase(struct stm32prog_data *data, u64 offset)
} }
} }
if (CONFIG_IS_ENABLED(MTD) && if (IS_ENABLED(CONFIG_MTD) &&
data->cur_part->bin_nb > 1) { data->cur_part->bin_nb > 1) {
if (stm32prog_copy_fsbl(data->cur_part)) { if (stm32prog_copy_fsbl(data->cur_part)) {
stm32prog_err("%s (0x%x): copy of fsbl failed", stm32prog_err("%s (0x%x): copy of fsbl failed",

View file

@ -123,7 +123,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
board_get_alt_info_mmc(dev, buf); board_get_alt_info_mmc(dev, buf);
} }
if (CONFIG_IS_ENABLED(MTD)) { if (IS_ENABLED(CONFIG_MTD)) {
/* probe all MTD devices */ /* probe all MTD devices */
mtd_probe_devices(); mtd_probe_devices();