[U-Boot] [PATCH] MMC: Don't use new framework code if not enabled
Dirk Behme
dirk.behme at googlemail.com
Wed Feb 18 19:59:39 CET 2009
Don't use code of new MMC framework in cmd_mmc if CONFIG_GENERIC_MMC
isn't enabled.
Signed-off-by: Dirk Behme <dirk.behme at googlemail.com>
---
Patch is against U-Boot master branch commit
5f0320108870e5d62983d1d5c13a2a087dddf686
"common/console: avoid ifdef CONFIG_CONSOLE_MUX when it's possible"
common/cmd_mmc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: u-boot-main/common/cmd_mmc.c
===================================================================
--- u-boot-main.orig/common/cmd_mmc.c
+++ u-boot-main/common/cmd_mmc.c
@@ -40,7 +40,7 @@ U_BOOT_CMD(
"init mmc card",
NULL
);
-#endif /* !CONFIG_GENERIC_MMC */
+#else /* !CONFIG_GENERIC_MMC */
static void print_mmcinfo(struct mmc *mmc)
{
@@ -171,3 +171,4 @@ U_BOOT_CMD(
"mmc write <device num> addr blk# cnt\n"
"mmc rescan <device num>\n"
"mmc list - lists available devices\n");
+#endif
More information about the U-Boot
mailing list