]> git.sur5r.net Git - u-boot/commit
mmc: compile out erase and write mmc commands if write operations are not enabled
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 4 Jan 2018 14:23:34 +0000 (15:23 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2018 09:11:24 +0000 (18:11 +0900)
commite6fa5a546154a42c4f6662cd8890c238207ce21a
tree5c534436ac1743a658189ffdb5f92e26521dcba8
parent5b2e72f32721484d2dea3d0dcf8c020bf3cbe574
mmc: compile out erase and write mmc commands if write operations are not enabled

Also remove erase_grp_size and write_bl_len from struct mmc as they are
not used anymore. On ARM, removing them saves about 100 bytes of code
space in SPL.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
cmd/mmc.c
drivers/mmc/mmc.c
include/mmc.h