Skip to content

Commit 5ad0d56

Browse files
committed
dw-dma: fix compilation for BYT, BDW and HSW
Fixes GCC compilation for BYT, BDW and HSW. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
1 parent b480595 commit 5ad0d56

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/drivers/dw-dma.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,11 @@ static int dw_dma_stop(struct dma *dma, int channel)
485485
{
486486
struct dma_pdata *p = dma_get_drvdata(dma);
487487
int ret = 0;
488+
uint32_t flags;
489+
#if DW_USE_HW_LLI
488490
int i = 0;
489491
struct dw_lli2 *lli;
490-
uint32_t flags;
492+
#endif
491493

492494
spin_lock_irq(&dma->lock, flags);
493495

0 commit comments

Comments
 (0)