From 5ad0d56fb5e84d173adfcd6305829564f3ef8ef6 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Mon, 6 Aug 2018 10:29:37 +0200 Subject: [PATCH] dw-dma: fix compilation for BYT, BDW and HSW Fixes GCC compilation for BYT, BDW and HSW. Signed-off-by: Tomasz Lauda --- src/drivers/dw-dma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drivers/dw-dma.c b/src/drivers/dw-dma.c index c5bbe192e..1f99433e1 100644 --- a/src/drivers/dw-dma.c +++ b/src/drivers/dw-dma.c @@ -485,9 +485,11 @@ static int dw_dma_stop(struct dma *dma, int channel) { struct dma_pdata *p = dma_get_drvdata(dma); int ret = 0; + uint32_t flags; +#if DW_USE_HW_LLI int i = 0; struct dw_lli2 *lli; - uint32_t flags; +#endif spin_lock_irq(&dma->lock, flags);