]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/mmc.c
mmc: remove hc_wp_grp_size from struct mmc if not needed
[u-boot] / drivers / mmc / mmc.c
index c1ba57f86dd4a8b8be87f7a374c6579581ee69be..53c819187e7d8af392953b8c3d833ec8551a76d0 100644 (file)
@@ -2098,9 +2098,11 @@ static int mmc_startup_v4(struct mmc *mmc)
                        * (erase_gmul + 1);
        }
 #endif
+#if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
        mmc->hc_wp_grp_size = 1024
                * ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE]
                * ext_csd[EXT_CSD_HC_WP_GRP_SIZE];
+#endif
 
        mmc->wr_rel_set = ext_csd[EXT_CSD_WR_REL_SET];