MMC: Don't use new framework code if not enabled
authorDirk Behme <dirk.behme@googlemail.com>
Wed, 18 Feb 2009 18:59:39 +0000 (19:59 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 19 Feb 2009 20:12:03 +0000 (21:12 +0100)
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>
common/cmd_mmc.c

index 73ec7bfc16a14f97e63da54ef6c49aa4f48fcc19..16c919be8342f2974b835edf805bc1d7187b139a 100644 (file)
@@ -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