diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 9a94d5b9e0590..77a6495bb6b19 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2585,7 +2585,7 @@ static struct dma_pl330_desc *pl330_get_desc(struct dma_pl330_chan *pch) /* If the DMAC pool is empty, alloc new */ if (!desc) { - DEFINE_SPINLOCK(lock); + static DEFINE_SPINLOCK(lock); LIST_HEAD(pool); if (!add_desc(&pool, &lock, GFP_ATOMIC, 1))