[U-Boot] [PATCH] 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 dirk.behme@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

Dear Dirk Behme,
In message 1234983579-6404-1-git-send-email-dirk.behme@googlemail.com you wrote:
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@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(-)
Applied, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
Dirk Behme
-
Wolfgang Denk