u-boot-brain/drivers/mmc
Gabor Juhos dbb713baa6 mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined
The FTSDC010_DCR_FIFO_RST symbol is conditionally
defined in <faraday/ftsdc010.h> and it is available
available when CONFIG_FTSDC010_SDIO is enabled.

However the actual driver code unconditionally uses
the FTSDC010_DCR_FIFO_RST constant and this causes
build error if CONFIG_FTSDC010_SDIO is not enabled.

The following error happens when compiling for the
adp-ag101 board:

  ftsdc010_mci.c: In function 'ftsdc010_request':
  ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
  ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
  ftsdc010_mci.c:178: error: for each function it appears in.)

The patch ensures that the FTSDC010_DCR_FIFO_RST
symbol gets used only if CONFIG_FTSDC010_SDIO is
defined.

Compile tested only.

Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
Cc: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Reviewed-by: Kuo-Jung Su <dantesu@faraday-tech.com>
2013-07-24 11:49:17 +08:00
..
arm_pl180_mmci.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
arm_pl180_mmci.h u8500: Separating mmc config parameters from driver 2012-09-01 14:58:20 +02:00
bcm2835_sdhci.c ARM: bcm2835: fix get_timer() to return ms 2013-04-04 08:14:54 +02:00
bfin_sdh.c Merge u-boot/master into u-boot-ti/master 2013-03-11 12:16:13 -04:00
davinci_mmc.c davinci, mmc: Added a delay reading ext CSD register 2013-05-06 16:26:24 -05:00
dw_mmc.c drivers/mmc/dw_mmc - remove extra arch specific "asm/arch/clk.h" inclusion 2013-07-16 18:44:22 -05:00
exynos_dw_mmc.c EXYNOS5: DWMMC: Added FDT support for DWMMC 2013-06-13 17:35:14 +09:00
fsl_esdhc.c fsl_esdhc: Touch only relevant sys ctrl bits 2013-07-16 18:44:23 -05:00
ftsdc010_mci.c mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined 2013-07-24 11:49:17 +08:00
gen_atmel_mci.c mmc: atmel_mci: add mmc card support 2013-05-12 16:48:11 +02:00
Makefile Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-05-30 14:45:06 +02:00
mmc_spi.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
mmc.c Fix block device accesses beyond 2TiB 2013-06-26 10:26:06 -04:00
mv_sdhci.c mmc: sdhci: return error when failed add_sdhci(). 2013-05-06 16:26:24 -05:00
mxcmmc.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
mxsmmc.c imx: Move some header files from arch-mxs to imx-common 2013-04-22 10:22:22 +02:00
omap_hsmmc.c mmc: omap_hsmmc: Update pbias programming 2013-06-10 08:43:10 -04:00
pxa_mmc_gen.c mmc: Remove incorrect cmd->flags usage 2012-09-06 15:23:13 -05:00
pxa_mmc.h pxa: move mmc drivers to drivers/mmc 2009-02-20 03:47:50 +01:00
s5p_sdhci.c mmc: sdhci: return error when failed add_sdhci(). 2013-05-06 16:26:24 -05:00
sdhci.c mmc: sdhci: Enable 8-bit bus width only for 3.0 spec onwards 2013-06-13 16:44:49 -05:00
sh_mmcif.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
sh_mmcif.h mmc: sh_mmcif: add support for Renesas MMCIF 2011-07-15 20:29:21 -05:00
spear_sdhci.c sdhci: Add sdhci support for spear devices 2013-05-06 16:26:24 -05:00
tegra_mmc.c mmc: Tegra: Add SD bus power/voltage function and MMC pad init call. 2013-03-14 11:06:44 -07:00
zynq_sdhci.c mmc: Add support for Xilinx Zynq sdhci controller 2013-04-30 11:39:27 +02:00