mmc: fix the build error when MMC_WRITE is disabled
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 17 Jan 2020 06:06:54 +0000 (15:06 +0900)
committerPeng Fan <peng.fan@nxp.com>
Mon, 17 Feb 2020 06:55:04 +0000 (14:55 +0800)
commit4af6659605abd707da3acc9ea525514e999b7aef
tree3a08fba574dab681e8a05d0be0b84a642231afc6
parentae93d8106bdb5926efef9222d553adb295ebce96
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 <jh80.chung@samsung.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc.c