Skip to content

Commit

Permalink
[SPARC64]: Fix PARPORT build (again).
Browse files Browse the repository at this point in the history
Need to provide {claim,release}_dma_lock() for this guy too.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 8, 2007
1 parent ca42663 commit 2ef5507
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/asm-sparc64/parport.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
*/
#define HAS_DMA

static DEFINE_SPINLOCK(dma_spin_lock);

#define claim_dma_lock() \
({ unsigned long flags; \
spin_lock_irqsave(&dma_spin_lock, flags); \
flags; \
})

#define release_dma_lock(__flags) \
spin_unlock_irqrestore(&dma_spin_lock, __flags);

static struct sparc_ebus_info {
struct ebus_dma_info info;
unsigned int addr;
Expand Down

0 comments on commit 2ef5507

Please sign in to comment.