ipq53xx: fix bootconfig driver compilation with gcc13

Fix CONFIG_EMMC macro to CONFIG_MMC for compatibility with gcc13
and newer kernel configurations.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-10-19 00:00:00 +02:00
parent 8d8eee1e87
commit 2492a29324

View File

@@ -0,0 +1,11 @@
--- a/drivers/platform/ipq/bootconfig.c
+++ b/drivers/platform/ipq/bootconfig.c
@@ -593,7 +593,7 @@ static int write_to_flash (struct sbl_if
if (IS_ERR(mtd)) {
/*Flash to EMMC*/
-#ifdef CONFIG_EMMC
+#ifdef CONFIG_MMC
for (i = 0; i < MAX_MMC_DEVICE; i++) {
bdev = blkdev_get_by_dev(MKDEV(MMC_BLOCK_MAJOR,