diff options
author | Haijun.Zhang <Haijun.Zhang@freescale.com> | 2013-05-07 15:50:58 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2013-05-15 18:18:16 -0500 |
commit | 48e0b2bd2b6ecc80cd25181ca2fb9c0eaffef320 (patch) | |
tree | 3081262afe289c35da452c5e52febec1483759ed | |
parent | f6c3b34697bf8bf05cb4e81c2fd3cadb9a98daea (diff) | |
download | u-boot-imx-48e0b2bd2b6ecc80cd25181ca2fb9c0eaffef320.zip u-boot-imx-48e0b2bd2b6ecc80cd25181ca2fb9c0eaffef320.tar.gz u-boot-imx-48e0b2bd2b6ecc80cd25181ca2fb9c0eaffef320.tar.bz2 |
powerpc/esdhc: Correct judgement for DATA PIO mode
The logic for the whether to configure for polling or DMA
was mistakenly reversed in this patch:
Commit 7b43db92110ec2f15c5f7187a165f2928464966b
drivers/mmc/fsl_esdhc.c: fix compiler warnings
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
CC: Sun Yusong-R58495 <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index ec01795..861f4b9 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -178,7 +178,7 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data) int timeout; struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base; -#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO +#ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO uint wml_value; wml_value = data->blocksize/4; |