env: move more common code to env_import_redund
[oweals/u-boot.git] / drivers / mmc / mmc_legacy.c
index bdf9d984ddfb643022d2032e574d04297922b26a..100b931e5b349f33d36691a5c552675935c4be8c 100644 (file)
@@ -150,7 +150,7 @@ struct mmc *mmc_create(const struct mmc_config *cfg, void *priv)
            cfg->f_max == 0 || cfg->b_max == 0)
                return NULL;
 
-#ifndef CONFIG_DM_MMC_OPS
+#if !CONFIG_IS_ENABLED(DM_MMC)
        if (cfg->ops == NULL || cfg->ops->send_cmd == NULL)
                return NULL;
 #endif