diff options
Diffstat (limited to 'drivers/dma/mediatek/mtk-hsdma.c')
| -rw-r--r-- | drivers/dma/mediatek/mtk-hsdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/mediatek/mtk-hsdma.c b/drivers/dma/mediatek/mtk-hsdma.c index b7ec56ae02a6..1a2028e1c29e 100644 --- a/drivers/dma/mediatek/mtk-hsdma.c +++ b/drivers/dma/mediatek/mtk-hsdma.c | |||
| @@ -325,8 +325,8 @@ static int mtk_hsdma_alloc_pchan(struct mtk_hsdma_device *hsdma, | |||
| 325 | * and [MTK_DMA_SIZE ... 2 * MTK_DMA_SIZE - 1] is for RX ring. | 325 | * and [MTK_DMA_SIZE ... 2 * MTK_DMA_SIZE - 1] is for RX ring. |
| 326 | */ | 326 | */ |
| 327 | pc->sz_ring = 2 * MTK_DMA_SIZE * sizeof(*ring->txd); | 327 | pc->sz_ring = 2 * MTK_DMA_SIZE * sizeof(*ring->txd); |
| 328 | ring->txd = dma_zalloc_coherent(hsdma2dev(hsdma), pc->sz_ring, | 328 | ring->txd = dma_alloc_coherent(hsdma2dev(hsdma), pc->sz_ring, |
| 329 | &ring->tphys, GFP_NOWAIT); | 329 | &ring->tphys, GFP_NOWAIT); |
| 330 | if (!ring->txd) | 330 | if (!ring->txd) |
| 331 | return -ENOMEM; | 331 | return -ENOMEM; |
| 332 | 332 | ||
