diff options
author | Tom Rini <trini@ti.com> | 2014-05-23 09:19:05 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-23 09:19:05 -0400 |
commit | 10dc77716f41979e03baf3b847b97dc7279ef30d (patch) | |
tree | 149355c73274b2c35d246d1c9e1a1cee50178be8 | |
parent | 638b3e8342e4b395f9e961bfac200420f29874a3 (diff) | |
download | u-boot-imx-10dc77716f41979e03baf3b847b97dc7279ef30d.zip u-boot-imx-10dc77716f41979e03baf3b847b97dc7279ef30d.tar.gz u-boot-imx-10dc77716f41979e03baf3b847b97dc7279ef30d.tar.bz2 |
esdhc/usdhc: Fix warning when CONFIG_SYS_FSL_ESDHC_USE_PIO is not set
In 7168977 we made calls to check_and_invalidate_dcache_range()
conditional on !CONFIG_SYS_FSL_ESDHC_USE_PIO. Only define this function
in this case as well.
Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index dca28f4..5541613 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -246,6 +246,7 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data) return 0; } +#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO static void check_and_invalidate_dcache_range (struct mmc_cmd *cmd, struct mmc_data *data) { @@ -255,6 +256,8 @@ static void check_and_invalidate_dcache_range unsigned end = start+size ; invalidate_dcache_range(start, end); } +#endif + /* * Sends a command out on the bus. Takes the mmc pointer, * a command pointer, and an optional data pointer. |