Merge branch 'master' of git://git.denx.de/u-boot-mmc
[oweals/u-boot.git] / drivers / mmc / fsl_esdhc.c
index dca28f4495dcd643f28dee841dfff12ed6cdd9ef..55416136ab2a46b15371be43517837b7c46b4aae 100644 (file)
@@ -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.