]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] dma: move IOMD and floppy DMA structures to RiscPC DMA code
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 21 Feb 2009 21:36:22 +0000 (21:36 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Feb 2009 21:36:22 +0000 (21:36 +0000)
There's no point these being in a generic include file when they're
only used in arch/arm/mach-rpc/dma.c.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/mach/dma.h
arch/arm/mach-rpc/dma.c

index 5166145d8a3c5e40db7c2d9fecb600557bb42f84..9e614a18e680d964734ffbe257d595b129b3acad 100644 (file)
@@ -43,19 +43,6 @@ struct dma_struct {
        const struct dma_ops *d_ops;
 };
 
-struct floppy_dma {
-       struct dma_struct       dma;
-       unsigned int            fiq;
-};
-
-struct iomd_dma {
-       struct dma_struct       dma;
-       unsigned int            state;
-       unsigned long           base;           /* Controller base address */
-       int                     irq;            /* Controller IRQ */
-       struct scatterlist      cur_sg;         /* Current controller buffer */
-};
-
 /*
  * isa_dma_add - add an ISA-style DMA channel
  */
index a5987bbed60df7078e5d78ab227bcd451acfe760..1f77cdca26e98483153020717d49ad0653634975 100644 (file)
 #include <asm/mach/dma.h>
 #include <asm/hardware/iomd.h>
 
+struct iomd_dma {
+       struct dma_struct       dma;
+       unsigned int            state;
+       unsigned long           base;           /* Controller base address */
+       int                     irq;            /* Controller IRQ */
+       struct scatterlist      cur_sg;         /* Current controller buffer */
+};
+
 #if 0
 typedef enum {
        dma_size_8      = 1,
@@ -242,6 +250,11 @@ static struct fiq_handler fh = {
        .name   = "floppydma"
 };
 
+struct floppy_dma {
+       struct dma_struct       dma;
+       unsigned int            fiq;
+};
+
 static void floppy_enable_dma(unsigned int chan, dma_t *dma)
 {
        struct floppy_dma *fdma = container_of(dma, struct floppy_dma, dma);