]> git.ipfire.org Git - people/ms/u-boot.git/commit
mmc: size optimization when !CONFIG_MMC_SPI
authorPaul Burton <paul.burton@imgtec.com>
Wed, 4 Sep 2013 15:12:26 +0000 (16:12 +0100)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Tue, 17 Sep 2013 17:03:44 +0000 (20:03 +0300)
commit8687d5c80c9b4d66b4c33e34ef8eb36cf93d9ec7
treecbbce7771a6bb4ee1e4e0774c77d41540bf91f5b
parent561968266431e16790e0d71086341f28e6930800
mmc: size optimization when !CONFIG_MMC_SPI

When CONFIG_MMC_SPI is not enabled, the MMC_MODE_SPI capability can
never be set. However there is code in mmc.c which uses the
mmc_host_is_spi macro to check that capability & act accordingly. If we
expand that macro to 0 when CONFIG_MMC_SPI is not set (since it will
always be 0 at runtime anyway) then the compiler can optimize away the
SPI-specific code paths in mmc.c.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
include/mmc.h