From 55767168a4db5c47fb2a75be1a23dbd852802966 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 22 Aug 2025 19:14:03 +0800 Subject: [PATCH] uboot-mtk-20250711: fix build without CONFIG_MEDIATEK_MULTI_MTD_LAYOUT Signed-off-by: Tianling Shen --- uboot-mtk-20250711/board/mediatek/common/mtd_helper.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c b/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c index f025fb638..15bcab04b 100644 --- a/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c +++ b/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c @@ -1541,10 +1541,8 @@ int mtd_upgrade_image(const void *data, size_t size) struct owrt_image_info ii; struct mtd_info *mtd; int ret; -#ifdef CONFIG_MEDIATEK_MULTI_MTD_LAYOUT const char *ubi_flash_part = PART_UBI_NAME; #endif -#endif #ifdef CONFIG_CMD_UBI struct mtd_info *mtd_kernel; @@ -1639,10 +1637,8 @@ int mtd_boot_image(bool do_boot) { #if defined(CONFIG_CMD_UBI) || !defined(CONFIG_MTK_DUAL_BOOT) struct mtd_info *mtd; -#ifdef CONFIG_MEDIATEK_MULTI_MTD_LAYOUT const char *ubi_boot_part = PART_UBI_NAME; #endif -#endif #ifdef CONFIG_CMD_UBI struct mtd_info *mtd_kernel;