Merge pull request #196 from tlauda/topic/issue-195

dw-dma: fix compilation for BYT, BDW and HSW
This commit is contained in:
Liam Girdwood 2018-08-07 05:08:35 -07:00 committed by GitHub
commit 876115c8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);