[U-Boot] [PATCH] fsl_esdhc.c: Always make check_and_invalidate_dcache_range available

Tom Rini trini at konsulko.com
Sun Aug 2 17:53:24 CEST 2015


This function is called from esdhc_send_cmd so we need it available to
everyone.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/mmc/fsl_esdhc.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 0510bf0..0b37002 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -274,7 +274,6 @@ 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) {
@@ -297,7 +296,6 @@ static void check_and_invalidate_dcache_range
 #endif
 	invalidate_dcache_range(start, end);
 }
-#endif
 
 /*
  * Sends a command out on the bus.  Takes the mmc pointer,
-- 
1.7.9.5



More information about the U-Boot mailing list