From 4275c13ca8859af8a1390856c82173bcdfc32938 Mon Sep 17 00:00:00 2001 From: Dmitry Artamonow Date: Sat, 19 Sep 2009 05:58:54 +0100 Subject: ARM: 5712/1: SA1100: initialise spinlock in DMA code Declare it using DEFINE_SPINLOCK() Signed-off-by: Dmitry Artamonow Signed-off-by: Russell King --- arch/arm/mach-sa1100/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/mach-sa1100/dma.c') diff --git a/arch/arm/mach-sa1100/dma.c b/arch/arm/mach-sa1100/dma.c index 95f9c5a..cb4521a 100644 --- a/arch/arm/mach-sa1100/dma.c +++ b/arch/arm/mach-sa1100/dma.c @@ -39,7 +39,7 @@ typedef struct { static sa1100_dma_t dma_chan[SA1100_DMA_CHANNELS]; -static spinlock_t dma_list_lock; +static DEFINE_SPINLOCK(dma_list_lock); static irqreturn_t dma_irq_handler(int irq, void *dev_id) -- cgit v1.1