u-boot-brain/drivers/mmc
Jaehoon Chung 177381a9f9 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>
2016-08-16 10:27:24 +09:00
..
arm_pl180_mmci.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
arm_pl180_mmci.h mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
atmel_sdhci.c mmc: atmel_sdhci: Convert to the driver model support 2016-08-15 22:58:05 +02:00
bcm2835_sdhci.c mmc: bcm2835: fix 64-bit build warning 2016-03-27 09:12:21 -04:00
bfin_sdh.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
davinci_mmc.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
dw_mmc.c mmc: dw_mmc: fix data starvation by host timeout under FIFO mode 2016-08-05 14:04:36 +09:00
exynos_dw_mmc.c mmc: dw_mmc: remove the duplicated header file 2016-08-05 11:21:24 +09:00
fsl_esdhc_spl.c block: pass block dev not num to read/write/erase() 2016-01-13 21:05:18 -05:00
fsl_esdhc.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
ftsdc010_mci.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
ftsdc021_sdhci.c mmc: add Faraday FTSDC021 SDHCI controller support 2013-12-08 14:23:05 +02:00
gen_atmel_mci.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
hi6220_dw_mmc.c driver: dwmmc: Fix pointer conversion warnings for hikey 2015-11-12 15:59:00 -05:00
Kconfig mmc: atmel_sdhci: Convert to the driver model support 2016-08-15 22:58:05 +02:00
kona_sdhci.c mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
Makefile mmc: rockchip: add SDHCI driver support for rockchip soc 2016-07-25 20:46:46 -06:00
mmc_boot.c mmc: Move MMC boot code into its own file 2016-07-11 14:06:44 -06:00
mmc_legacy.c mmc: mmc_legacy: fix the compiler error with disabled CONFIG_DM_MMC_OPS 2016-08-16 10:27:24 +09:00
mmc_private.h mmc: Move tracing code into separate functions 2016-07-11 14:06:44 -06:00
mmc_spi.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
mmc_write.c dm: mmc: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
mmc-uclass.c mmc: display mmc list information like mmc_legacy type 2016-08-05 11:21:25 +09:00
mmc.c mmc: send CMD0 before CMD1 for some MMC cards 2016-08-16 10:27:07 +09:00
msm_sdhci.c fdt: allow fdtdec_get_addr_size_*() to translate addresses 2016-08-12 09:20:27 -06:00
mv_sdhci.c mmc: mv_sdhci: Configure the SDHCI MBUS bridge windows 2015-10-21 02:25:02 +02:00
mvebu_mmc.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
mxcmmc.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
mxsmmc.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
omap_hsmmc.c drivers: mmc: omap_hsmmc: fix build breakage 2016-08-16 10:24:10 +09:00
pci_mmc.c mmc: sdhci: add const qualifier to the name of struct sdhci_host 2016-04-25 15:10:42 -04:00
pic32_sdhci.c dm: mmc: Set up the device pointer when using the MMC uclass 2016-05-17 09:54:43 -06:00
pxa_mmc_gen.c arm: pxa: mmc: clean-up include file order 2015-08-24 20:30:37 +02:00
rockchip_dw_mmc.c rockchip: mmc: Update the driver to support of-platdata 2016-07-14 20:40:24 -06:00
rockchip_sdhci.c mmc: sdhci: remove the unnecessary arguments for sdhci_setup_cfg 2016-08-05 11:31:07 +09:00
rpmb.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
s3c_sdi.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
s5p_sdhci.c mmc: s5p_sdhci: unset the SDHCI_QUIRK_BROKEN_R1B 2016-08-05 11:21:24 +09:00
sandbox_mmc.c dm: sandbox: Convert to use CONFIG_CMD_MMC_OPS 2016-07-11 14:06:44 -06:00
sdhci.c mmc: sdhci: fix the compiler warning when disable CONFIG_MMC_SDMA 2016-08-05 20:48:01 +09:00
sh_mmcif.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
sh_mmcif.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
sh_sdhi.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
socfpga_dw_mmc.c dm: socfpga: mmc: Support CONFIG_BLK 2016-07-27 14:15:54 -06:00
spear_sdhci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sunxi_mmc.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
tegra_mmc.c mmc: tegra: port to standard clock/reset APIs 2016-08-15 10:26:13 -07:00
uniphier-sd.c mmc: use the generic error number 2016-08-05 11:21:25 +09:00
zynq_sdhci.c zynq_sdhci.c: Fix warning in arasan_sdhci_probe 2016-08-05 20:55:31 -04:00