summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/Makefile')
-rw-r--r--drivers/mmc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile
index 38a172be3a..3da4817a18 100644
--- a/drivers/mmc/Makefile
+++ b/drivers/mmc/Makefile
@@ -5,7 +5,9 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-$(CONFIG_DM_MMC) += mmc-uclass.o
+ifdef CONFIG_DM_MMC
+obj-$(CONFIG_GENERIC_MMC) += mmc-uclass.o
+endif
ifndef CONFIG_BLK
obj-$(CONFIG_GENERIC_MMC) += mmc_legacy.o
OpenPOWER on IntegriCloud