mmc: tmio: remove TMIO_MMC_HAVE_CTL_DMA_REG flag
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 13 Jan 2015 05:00:39 +0000 (05:00 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jan 2015 09:24:36 +0000 (10:24 +0100)
tmio_mmc_host has .enable_dma callback now.
We don't need TMIO_MMC_HAVE_CTL_DMA_REG anymore.
Let's remove it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sh_mobile_sdhi.c
drivers/mmc/host/tmio_mmc_dma.c
include/linux/mfd/tmio.h

index 7dbcb577f5960dfbb112a93ebf55c601d0e588c9..6906a905cd543f9d34058cbab8b4bbf7b64bb051 100644 (file)
@@ -291,11 +291,6 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
         */
        mmc_data->flags |= TMIO_MMC_SDIO_STATUS_QUIRK;
 
-       /*
-        * All SDHI have DMA control register
-        */
-       mmc_data->flags |= TMIO_MMC_HAVE_CTL_DMA_REG;
-
        if (of_id && of_id->data) {
                const struct sh_mobile_sdhi_of_data *of_data = of_id->data;
                mmc_data->flags |= of_data->tmio_flags;
index aa5f4b6e790d5794698c747193b075996d45f859..331bb618e3987a6bb8283a2102f7ccfb5639a38e 100644 (file)
@@ -28,9 +28,6 @@ void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable)
        if (!host->chan_tx || !host->chan_rx)
                return;
 
-       if (host->pdata->flags & TMIO_MMC_HAVE_CTL_DMA_REG)
-               sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0);
-
        if (host->dma->enable)
                host->dma->enable(host, enable);
 }
index 807ecfb162d791b403c576e07ec50ea80fbc29e8..605812820e483acd798d5e033e2e4d8844f3cb27 100644 (file)
  */
 #define TMIO_MMC_SDIO_STATUS_QUIRK     (1 << 8)
 
-/*
- * Some controllers have DMA enable/disable register
- */
-#define TMIO_MMC_HAVE_CTL_DMA_REG      (1 << 9)
-
 /*
  * Some controllers allows to set SDx actual clock
  */