aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-06-21 10:41:50 -0400
committerChris Ball <cjb@laptop.org>2011-07-20 17:21:03 -0400
commite8cd77e467f7bb1d4b942037c47b087334a484d4 (patch)
treefa3b90d8e7c6baa1f5365c57f0e36a9f56b7fa82
parent803862a6f7de4939e0a557214e5e4b37e36f87ff (diff)
mmc: sdhci-esdhc-imx: remove "WP" from flag ESDHC_FLAG_GPIO_FOR_CD_WP
The use of flag ESDHC_FLAG_GPIO_FOR_CD_WP is all CD related. It does not necessarily need to bother WP in the flag name. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/host/sdhci-esdhc-imx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index 01d42601e8dc..710b706f4fcf 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -29,7 +29,7 @@
29#define SDHCI_VENDOR_SPEC 0xC0 29#define SDHCI_VENDOR_SPEC 0xC0
30#define SDHCI_VENDOR_SPEC_SDIO_QUIRK 0x00000002 30#define SDHCI_VENDOR_SPEC_SDIO_QUIRK 0x00000002
31 31
32#define ESDHC_FLAG_GPIO_FOR_CD_WP (1 << 0) 32#define ESDHC_FLAG_GPIO_FOR_CD (1 << 0)
33/* 33/*
34 * The CMDTYPE of the CMD register (offset 0xE) should be set to 34 * The CMDTYPE of the CMD register (offset 0xE) should be set to
35 * "11" when the STOP CMD12 is issued on imx53 to abort one 35 * "11" when the STOP CMD12 is issued on imx53 to abort one
@@ -65,7 +65,7 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg)
65 u32 val = readl(host->ioaddr + reg); 65 u32 val = readl(host->ioaddr + reg);
66 66
67 if (unlikely((reg == SDHCI_PRESENT_STATE) 67 if (unlikely((reg == SDHCI_PRESENT_STATE)
68 && (imx_data->flags & ESDHC_FLAG_GPIO_FOR_CD_WP))) { 68 && (imx_data->flags & ESDHC_FLAG_GPIO_FOR_CD))) {
69 struct esdhc_platform_data *boarddata = 69 struct esdhc_platform_data *boarddata =
70 host->mmc->parent->platform_data; 70 host->mmc->parent->platform_data;
71 71
@@ -87,7 +87,7 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg)
87 struct pltfm_imx_data *imx_data = pltfm_host->priv; 87 struct pltfm_imx_data *imx_data = pltfm_host->priv;
88 88
89 if (unlikely((reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE) 89 if (unlikely((reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE)
90 && (imx_data->flags & ESDHC_FLAG_GPIO_FOR_CD_WP))) 90 && (imx_data->flags & ESDHC_FLAG_GPIO_FOR_CD)))
91 /* 91 /*
92 * these interrupts won't work with a custom card_detect gpio 92 * these interrupts won't work with a custom card_detect gpio
93 * (only applied to mx25/35) 93 * (only applied to mx25/35)
@@ -296,7 +296,7 @@ static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev)
296 goto no_card_detect_irq; 296 goto no_card_detect_irq;
297 } 297 }
298 298
299 imx_data->flags |= ESDHC_FLAG_GPIO_FOR_CD_WP; 299 imx_data->flags |= ESDHC_FLAG_GPIO_FOR_CD;
300 /* Now we have a working card_detect again */ 300 /* Now we have a working card_detect again */
301 host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION; 301 host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION;
302 } 302 }