]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Correct SPL uses of MTD
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:40:17 +0000 (15:40 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:39 +0000 (07:41 -0500)
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>
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
board/st/common/stm32mp_dfu.c

index 89552d2ad10beba21389b5ee34d224e6e1fba261..934800be93d6b9b197c85a6f69193a16988c8cdb 100644 (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) {
                if (stm32prog_copy_fsbl(data->cur_part)) {
                        stm32prog_err("%s (0x%x): copy of fsbl failed",
index 0096f71dfc1f39c71dcd5563bdc6410b05173b0f..1cf4a3d5fa1b17fa2638fe2d7d4ad968f22a2dc6 100644 (file)
@@ -123,7 +123,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
                        board_get_alt_info_mmc(dev, buf);
        }
 
-       if (CONFIG_IS_ENABLED(MTD)) {
+       if (IS_ENABLED(CONFIG_MTD)) {
                /* probe all MTD devices */
                mtd_probe_devices();