Skip to contentSkip to conversation

MMC: Don't use new framework code if not enabled

PATCH New Dirk Behme 2 participants 2 messages Feb 18, 2009 – Feb 19, 2009

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 MMC: Don't use new framework code if not enabled

Don't use code of new MMC framework in cmd_mmc if CONFIG_GENERIC_MMC isn't enabled.

---

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(-)
common/cmd_mmc.c +2 -1
Index: 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
#1 lore raw

PATCH 1/1 MMC: Don't use new framework code if not enabled

Dear Dirk Behme,

Quoted 5 lines · In message <[email protected]> you…

Don't use code of new MMC framework in cmd_mmc if CONFIG_GENERIC_MMC isn't enabled.

Quoted 8 lines

---

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(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Every time history repeats itself the price goes up.