MMC: Don't use new framework code if not enabled
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.
Signed-off-by Dirk Behme <[email protected]>
---
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
@@ -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
Wolfgang Denk
AppliedPATCH 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_mmcifCONFIG_GENERIC_MMCisn't enabled.Signed-off-by Dirk Behme <[email protected]>
Quoted 8 lines
---
Patch is against U-Boot master branch commit
5f0320108870e5d62983d1d5c13a2a087dddf686"common/console: avoid ifdefCONFIG_CONSOLE_MUXwhen 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.