diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-12 11:39:05 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-16 10:27:24 +0900 |
commit | 177381a9f9e956353deaa56d86bec47e02995ff3 (patch) | |
tree | 08e8741c9f71591a9c1836ebb4c43fc6fb9df574 /configs/spear310_nand_defconfig | |
parent | d188b1130226d304fb3cd2c901b968eca927f39f (diff) | |
download | u-boot-imx-177381a9f9e956353deaa56d86bec47e02995ff3.zip u-boot-imx-177381a9f9e956353deaa56d86bec47e02995ff3.tar.gz u-boot-imx-177381a9f9e956353deaa56d86bec47e02995ff3.tar.bz2 |
mmc: mmc_legacy: fix the compiler error with disabled CONFIG_DM_MMC_OPS
To prevent the compiler error, split the checking condition whether
cfg->ops is NULL or not.
It's more clearly, because it's not included in mmc_config structure
when CONFIG_DM_MMC_OPS is disabled.
drivers/mmc/mmc_legacy.c: In function ‘mmc_create’:
drivers/mmc/mmc_legacy.c:118:31: error: ‘const struct mmc_config’ has no member named ‘ops’
drivers/mmc/mmc_legacy.c:118:58: error: ‘const struct mmc_config’ has no member named ‘ops’
make[1]: *** [drivers/mmc/mmc_legacy.o] Error 1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/spear310_nand_defconfig')
0 files changed, 0 insertions, 0 deletions