Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: jz4740: Drop dependency on arch header

We don't need to set the 'slave_id' anymore - that field is never read
by the DMA driver.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Paul Cercueil and committed by
Ulf Hansson
6e943c15 65af9866

-4
-4
drivers/mmc/host/jz4740_mmc.c
··· 25 25 26 26 #include <asm/cacheflush.h> 27 27 28 - #include <asm/mach-jz4740/dma.h> 29 - 30 28 #define JZ_REG_MMC_STRPCL 0x00 31 29 #define JZ_REG_MMC_STATUS 0x04 32 30 #define JZ_REG_MMC_CLKRT 0x08 ··· 290 292 if (data->flags & MMC_DATA_WRITE) { 291 293 conf.direction = DMA_MEM_TO_DEV; 292 294 conf.dst_addr = host->mem_res->start + JZ_REG_MMC_TXFIFO; 293 - conf.slave_id = JZ4740_DMA_TYPE_MMC_TRANSMIT; 294 295 } else { 295 296 conf.direction = DMA_DEV_TO_MEM; 296 297 conf.src_addr = host->mem_res->start + JZ_REG_MMC_RXFIFO; 297 - conf.slave_id = JZ4740_DMA_TYPE_MMC_RECEIVE; 298 298 } 299 299 300 300 sg_count = jz4740_mmc_prepare_dma_data(host, data, COOKIE_MAPPED);