Skip to content

Commit

Permalink
[PARISC] Make DMA routines more stubby
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox authored and Matthew Wilcox committed Oct 4, 2006
1 parent f312094 commit 99b6e9b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/asm-parisc/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,13 @@
#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);
}


Expand Down

0 comments on commit 99b6e9b

Please sign in to comment.