[ARM] dma: remove usage of dmamode_t from MXC platform support
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 2 Jan 2009 12:34:31 +0000 (12:34 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Jan 2009 12:34:31 +0000 (12:34 +0000)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-mxc/dma-mx1-mx2.c
arch/arm/plat-mxc/include/mach/dma-mx1-mx2.h

index 214274344442bd1205d41ae8de12c7a30caefa66..92bc4f6bd0199d64ef1ccd61d0a27ceafd4261a2 100644 (file)
@@ -114,7 +114,7 @@ struct imx_dma_channel {
        void (*err_handler) (int, void *, int errcode);
        void (*prog_handler) (int, void *, struct scatterlist *);
        void *data;
-       dmamode_t  dma_mode;
+       unsigned int dma_mode;
        struct scatterlist *sg;
        unsigned int resbytes;
        int dma_num;
@@ -193,7 +193,7 @@ static inline int imx_dma_sg_next(int channel, struct scatterlist *sg)
 int
 imx_dma_setup_single(int channel, dma_addr_t dma_address,
                     unsigned int dma_length, unsigned int dev_addr,
-                    dmamode_t dmamode)
+                    unsigned int dmamode)
 {
        struct imx_dma_channel *imxdma = &imx_dma_channels[channel];
 
@@ -288,7 +288,7 @@ int
 imx_dma_setup_sg(int channel,
                 struct scatterlist *sg, unsigned int sgcount,
                 unsigned int dma_length, unsigned int dev_addr,
-                dmamode_t dmamode)
+                unsigned int dmamode)
 {
        struct imx_dma_channel *imxdma = &imx_dma_channels[channel];
 
index 6cc6f0c8cb25deb78397d3669407bba71a7f9832..c162920b13a96f65417fed5c745b248dc3b61d77 100644 (file)
@@ -54,12 +54,12 @@ imx_dma_config_burstlen(int channel, unsigned int burstlen);
 int
 imx_dma_setup_single(int channel, dma_addr_t dma_address,
                unsigned int dma_length, unsigned int dev_addr,
-               dmamode_t dmamode);
+               unsigned int dmamode);
 
 int
 imx_dma_setup_sg(int channel, struct scatterlist *sg,
                unsigned int sgcount, unsigned int dma_length,
-               unsigned int dev_addr, dmamode_t dmamode);
+               unsigned int dev_addr, unsigned int dmamode);
 
 int
 imx_dma_setup_handlers(int channel,