Commit 4af66596 authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Peng Fan
Browse files

mmc: fix the build error when MMC_WRITE is disabled

erase_grp_size is used, when MMC_WRITE is enabled.
- error: ‘struct mmc’ has no member named ‘erase_grp_size’

Signed-off-by: Jaehoon Chung's avatarJaehoon Chung <>
Reviewed-by: Peng Fan's avatarPeng Fan <>
parent ae93d810
......@@ -1126,9 +1126,11 @@ int mmc_hwpart_config(struct mmc *mmc,
/* update erase group size to be high-capacity */
mmc->erase_grp_size =
ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE] * 1024;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment