diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-02-26 11:07:32 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-04-04 21:22:44 +0800 |
commit | 26aafa77df61c4190eae80646211ee6f07c88eaf (patch) | |
tree | 5ae896947ebde38999bd5271a8a13ad09a2b117d /include/linux/spi | |
parent | 0e91e434c86c84e84c46cf8bff2b5e53daee85d5 (diff) | |
download | op-kernel-dev-26aafa77df61c4190eae80646211ee6f07c88eaf.zip op-kernel-dev-26aafa77df61c4190eae80646211ee6f07c88eaf.tar.gz |
spi: mxs-spi: move to use generic DMA helper
With the generic DMA device tree helper supported by mxs-dma driver,
client devices only need to call dma_request_slave_channel() for
requesting a DMA channel from dmaengine.
Since mxs is a DT only platform now, along with the changes, the non-DT
case handling in probe function also gets removed.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/mxs-spi.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/spi/mxs-spi.h b/include/linux/spi/mxs-spi.h index 61ae130..4835486 100644 --- a/include/linux/spi/mxs-spi.h +++ b/include/linux/spi/mxs-spi.h @@ -24,7 +24,7 @@ #ifndef __LINUX_SPI_MXS_SPI_H__ #define __LINUX_SPI_MXS_SPI_H__ -#include <linux/fsl/mxs-dma.h> +#include <linux/dmaengine.h> #define ssp_is_old(host) ((host)->devid == IMX23_SSP) @@ -137,9 +137,7 @@ struct mxs_ssp { unsigned int clk_rate; enum mxs_ssp_id devid; - int dma_channel; struct dma_chan *dmach; - struct mxs_dma_data dma_data; unsigned int dma_dir; enum dma_transfer_direction slave_dirn; u32 ssp_pio_words[SSP_PIO_NUM]; |