mmc: bring back partition init for non-DM MMC drivers
[platform/kernel/u-boot.git] / drivers / mmc / mmc.c
index f5c821e..d858127 100644 (file)
@@ -2449,6 +2449,10 @@ static int mmc_startup(struct mmc *mmc)
        bdesc->revision[0] = 0;
 #endif
 
+#if !defined(CONFIG_DM_MMC) && (!defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBDISK_SUPPORT))
+       part_init(bdesc);
+#endif
+
        return 0;
 }