mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
d48b8d1138
Use CONFIG_IS_ENABLED to see if CONFIG_BLK is enabled. Otherwise SPL compilation breaks on boards which do have CONFIG_BLK enabled but not DM_MMC for the SPL as follows: env/mmc.c: In function ‘init_mmc_for_env’: env/mmc.c:164:6: warning: implicit declaration of function ‘blk_get_from_parent’; did you mean ‘efi_get_ram_base’? [-Wimplicit-function-declaration] if (blk_get_from_parent(mmc->dev, &dev)) ^~~~~~~~~~~~~~~~~~~ efi_get_ram_base env/mmc.c:164:29: error: ‘struct mmc’ has no member named ‘dev’ if (blk_get_from_parent(mmc->dev, &dev)) ^~ Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
attr.c | ||
callback.c | ||
common.c | ||
eeprom.c | ||
embedded.c | ||
env.c | ||
ext4.c | ||
fat.c | ||
flags.c | ||
flash.c | ||
Kconfig | ||
Makefile | ||
mmc.c | ||
nand.c | ||
nowhere.c | ||
nvram.c | ||
onenand.c | ||
remote.c | ||
sata.c | ||
sf.c | ||
ubi.c |