[PARISC] Make DMA routines more stubby
authorMatthew Wilcox <matthew@wil.cx>
Thu, 21 Sep 2006 02:36:42 +0000 (20:36 -0600)
committerMatthew Wilcox <willy@parisc-linux.org>
Wed, 4 Oct 2006 12:51:07 +0000 (06:51 -0600)
We were pretending to use the GENERIC_ISA_DMA routines, but never
selected that symbol.  Since ISA DMA is known to not work right now,
just remove the attempts to acquire the dma_spin_lock to fix compile
warnings.

Signed-off-by: Matthew Wilcox <willy@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
include/asm-parisc/dma.h

index 9979c3cb37454a23e53a3d7ce2d300a8bd11a3f7..da2cf373e31c54af3e746e95d87d08656299b518 100644 (file)
 #define DMA2_MASK_ALL_REG       0xDE    /* all-channels mask (w) */
 #define DMA2_EXT_MODE_REG      (0x400 | DMA2_MODE_REG)
 
-extern spinlock_t dma_spin_lock;
-
 static __inline__ unsigned long claim_dma_lock(void)
 {
-       unsigned long flags;
-       spin_lock_irqsave(&dma_spin_lock, flags);
-       return flags;
+       return 0;
 }
 
 static __inline__ void release_dma_lock(unsigned long flags)
 {
-       spin_unlock_irqrestore(&dma_spin_lock, flags);
 }