diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-05 14:13:36 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-05 20:48:01 +0900 |
commit | 89f69e51734f5d704ef84503d24907bfde2f5577 (patch) | |
tree | 660def2c6e214d0617a49de64f19aa908645f053 /drivers/mmc/sdhci.c | |
parent | 4587f53a582c9ab0bd908cff590755bfc03fced4 (diff) | |
download | u-boot-imx-89f69e51734f5d704ef84503d24907bfde2f5577.zip u-boot-imx-89f69e51734f5d704ef84503d24907bfde2f5577.tar.gz u-boot-imx-89f69e51734f5d704ef84503d24907bfde2f5577.tar.bz2 |
mmc: sdhci: fix the compiler warning when disable CONFIG_MMC_SDMA
When disabled CONFIG_MMC_SDMA, variable caps didn't use.
This patch fixes the compiler error for -Wunused-but-set-variable
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/sdhci.c')
-rw-r--r-- | drivers/mmc/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 60108fd..7ddb549 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -575,10 +575,10 @@ int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg) #else int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk) { +#ifdef CONFIG_MMC_SDMA unsigned int caps; caps = sdhci_readl(host, SDHCI_CAPABILITIES); -#ifdef CONFIG_MMC_SDMA if (!(caps & SDHCI_CAN_DO_SDMA)) { printf("%s: Your controller doesn't support SDMA!!\n", __func__); |