summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-01-02 12:34:55 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-01-02 12:34:55 +0000
commitf0ffc816250a8cc28e6824326e2d58333e058eca (patch)
tree1949fcb94b07e1dac522fcaae53cb5343c788ab4
parent4e57ea9a2e8e807e20f64d5b53fbee2c7c9e87ae (diff)
downloadblackbird-op-linux-f0ffc816250a8cc28e6824326e2d58333e058eca.tar.gz
blackbird-op-linux-f0ffc816250a8cc28e6824326e2d58333e058eca.zip
[ARM] dma: remove dmamode_t typedef
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/include/asm/dma.h7
-rw-r--r--arch/arm/include/asm/mach/dma.h2
-rw-r--r--arch/arm/kernel/dma.c2
3 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/include/asm/dma.h b/arch/arm/include/asm/dma.h
index 59f59c6c79f7..7edf3536df24 100644
--- a/arch/arm/include/asm/dma.h
+++ b/arch/arm/include/asm/dma.h
@@ -22,11 +22,6 @@
#include <mach/isa-dma.h>
/*
- * DMA modes
- */
-typedef unsigned int dmamode_t;
-
-/*
* The DMA modes reflect the settings for the ISA DMA controller
*/
#define DMA_MODE_MASK 0xcc
@@ -125,7 +120,7 @@ extern void set_dma_count(unsigned int chan, unsigned long count);
* DMA transfer direction immediately, but defer it to the
* enable_dma().
*/
-extern void set_dma_mode(unsigned int chan, dmamode_t mode);
+extern void set_dma_mode(unsigned int chan, unsigned int mode);
/* Set the transfer speed for this channel
*/
diff --git a/arch/arm/include/asm/mach/dma.h b/arch/arm/include/asm/mach/dma.h
index 3122adae80be..5166145d8a3c 100644
--- a/arch/arm/include/asm/mach/dma.h
+++ b/arch/arm/include/asm/mach/dma.h
@@ -34,7 +34,7 @@ struct dma_struct {
unsigned int active:1; /* Transfer active */
unsigned int invalid:1; /* Address/Count changed */
- dmamode_t dma_mode; /* DMA mode */
+ unsigned int dma_mode; /* DMA mode */
int speed; /* DMA speed */
unsigned int lock; /* Device is allocated */
diff --git a/arch/arm/kernel/dma.c b/arch/arm/kernel/dma.c
index e7828fcd9544..7d5b9fb01e71 100644
--- a/arch/arm/kernel/dma.c
+++ b/arch/arm/kernel/dma.c
@@ -171,7 +171,7 @@ EXPORT_SYMBOL(set_dma_count);
/* Set DMA direction mode
*/
-void set_dma_mode (unsigned int chan, dmamode_t mode)
+void set_dma_mode (unsigned int chan, unsigned int mode)
{
dma_t *dma = dma_channel(chan);
OpenPOWER on IntegriCloud