diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-05-26 12:11:27 +0200 |
---|---|---|
committer | Macpaul Lin <macpaul@gmail.com> | 2013-07-24 11:49:17 +0800 |
commit | dbb713baa608d3397e56bc32b26d2efe07c756ee (patch) | |
tree | f7df3803c5fe81baa1ec8aca9cacf6e56ebb1068 /drivers/net/dm9000x.c | |
parent | bea2868f5e5f994db3f6cf23a6111cfd6ac79fc3 (diff) | |
download | u-boot-imx-dbb713baa608d3397e56bc32b26d2efe07c756ee.zip u-boot-imx-dbb713baa608d3397e56bc32b26d2efe07c756ee.tar.gz u-boot-imx-dbb713baa608d3397e56bc32b26d2efe07c756ee.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/dm9000x.c')
0 files changed, 0 insertions, 0 deletions