summaryrefslogtreecommitdiff
path: root/drivers/dma/at_hdmac_regs.h
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2011-11-22 11:55:54 +0100
committerVinod Koul <vinod.koul@linux.intel.com>2011-11-28 15:55:36 +0530
commit02f88be9488a3d831f073c1161b1e5feacb9d3ec (patch)
treef4d9a53a2185a6e118ad64e2e27901a0ccb6e43a /drivers/dma/at_hdmac_regs.h
parentdcc817346d311bbd9dac6fc9d6bddb552134851c (diff)
dmaengine: at_hdmac: simplify device selection from platform data or DT
Using a configuration structure simplify the finding of SoC dependent parameters. Both platform data and device tree ids are using these structures. This will separate data from code and remove the need for an enum. Idea from Grant Likely. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/at_hdmac_regs.h')
-rw-r--r--drivers/dma/at_hdmac_regs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dma/at_hdmac_regs.h b/drivers/dma/at_hdmac_regs.h
index d7d67372e4ff..dcaedfc181cf 100644
--- a/drivers/dma/at_hdmac_regs.h
+++ b/drivers/dma/at_hdmac_regs.h
@@ -248,12 +248,6 @@ static inline struct at_dma_chan *to_at_dma_chan(struct dma_chan *dchan)
/*-- Controller ------------------------------------------------------*/
-enum atdma_devtype {
- ATDMA_DEVTYPE_UNDEFINED = 0,
- ATDMA_DEVTYPE_SAM9RL, /* compatible with SAM9RL DMA controller */
- ATDMA_DEVTYPE_SAM9G45, /* compatible with SAM9G45 DMA controller */
-};
-
/**
* struct at_dma - internal representation of an Atmel HDMA Controller
* @chan_common: common dmaengine dma_device object members
@@ -267,7 +261,6 @@ enum atdma_devtype {
*/
struct at_dma {
struct dma_device dma_common;
- enum atdma_devtype devtype;
void __iomem *regs;
struct clk *clk;
u32 save_imr;