summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-10-01 14:30:41 -0600
committerPeng Fan <[email protected]>2025-10-10 10:46:40 +0800
commit6304cfa5a7ea57725700556f8f64197a75f93066 (patch)
treeaf839c11b0988a85fd9a51df2491a410624e24a1
parent0524f40947b4dfdd15d1905c6041ef0579a25093 (diff)
mmc: Fix a potential warning in xPL
When xPL_MMC_WRITE is set but also xPL_MMC_TINY is set, the function sd_read_ssr may be unused. Guard it appropriately. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index b1cfa3cd7c2..ec61ed92e86 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1546,7 +1546,7 @@ static int sd_select_bus_width(struct mmc *mmc, int w)
}
#endif
-#if CONFIG_IS_ENABLED(MMC_WRITE)
+#if CONFIG_IS_ENABLED(MMC_WRITE) && !CONFIG_IS_ENABLED(MMC_TINY)
static int sd_read_ssr(struct mmc *mmc)
{
static const unsigned int sd_au_size[] = {