提交 9beee912 编写于 作者: J Jaehoon Chung 提交者: Chris Ball

mmc: dw_mmc: fix compile error when CONFIG_MMC_DW_IDMAC is disabled

When disable CONFIG_MMC_DW_IDMAC, can see the compiler error.
Because in dw_mci_post_req(), called the dw_mci_get_dma_dir().
But that function is in #ifdef CONFIG_MMC_DW_IDMAC.

I think that function is generic function.
Not need the CONFIG_MMC_DW_IDMAC.
Signed-off-by: NJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Acked-by: NSeungwon Jeon <tgih.jun@samsung.com>
Acked-by: NJames Hogan <james.hogan@imgtec.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 d418ed87
...@@ -295,7 +295,6 @@ static void dw_mci_stop_dma(struct dw_mci *host) ...@@ -295,7 +295,6 @@ static void dw_mci_stop_dma(struct dw_mci *host)
} }
} }
#ifdef CONFIG_MMC_DW_IDMAC
static int dw_mci_get_dma_dir(struct mmc_data *data) static int dw_mci_get_dma_dir(struct mmc_data *data)
{ {
if (data->flags & MMC_DATA_WRITE) if (data->flags & MMC_DATA_WRITE)
...@@ -304,6 +303,7 @@ static int dw_mci_get_dma_dir(struct mmc_data *data) ...@@ -304,6 +303,7 @@ static int dw_mci_get_dma_dir(struct mmc_data *data)
return DMA_FROM_DEVICE; return DMA_FROM_DEVICE;
} }
#ifdef CONFIG_MMC_DW_IDMAC
static void dw_mci_dma_cleanup(struct dw_mci *host) static void dw_mci_dma_cleanup(struct dw_mci *host)
{ {
struct mmc_data *data = host->data; struct mmc_data *data = host->data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册