From: Dirk Behme Date: Wed, 18 Feb 2009 19:59:39 +0100 Subject: [U-Boot] [PATCH] MMC: Don't use new framework code if not enabled Message-ID: <1234983579-6404-1-git-send-email-dirk.behme@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Don't use code of new MMC framework in cmd_mmc if CONFIG_GENERIC_MMC isn't enabled. Signed-off-by: Dirk Behme --- 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 addr blk# cnt\n" "mmc rescan \n" "mmc list - lists available devices\n"); +#endif