commit | d4519550719b696d2dfa205f0083fc78fee7e3f9 | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@imgtec.com> | Wed Sep 04 16:12:26 2013 +0100 |
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | Tue Sep 17 20:03:44 2013 +0300 |
tree | cbbce7771a6bb4ee1e4e0774c77d41540bf91f5b | |
parent | 6a7c5ba231bacc79c1ee9254edc9f2bbdd42b22d [diff] |
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>