diff options
author | Joe Perches <joe@perches.com> | 2014-06-15 13:37:55 -0700 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-06-16 11:39:45 +0200 |
commit | 7f0f20486f4d3da7abaf0099738708881196aa2f (patch) | |
tree | 5f89373086e652a603cefda67d06aeafc346dcf8 /sound/sparc/dbri.c | |
parent | 74b0c2d75fb4cc89173944e6d8f9eb47aca0c343 (diff) | |
download | op-kernel-dev-7f0f20486f4d3da7abaf0099738708881196aa2f.zip op-kernel-dev-7f0f20486f4d3da7abaf0099738708881196aa2f.tar.gz |
ALSA: Use dma_zalloc_coherent
Use the zeroing function instead of dma_alloc_coherent & memset(,0,)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/sparc/dbri.c')
-rw-r--r-- | sound/sparc/dbri.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c index be1b1aa..b2c3d0d 100644 --- a/sound/sparc/dbri.c +++ b/sound/sparc/dbri.c @@ -2534,12 +2534,10 @@ static int snd_dbri_create(struct snd_card *card, dbri->op = op; dbri->irq = irq; - dbri->dma = dma_alloc_coherent(&op->dev, - sizeof(struct dbri_dma), - &dbri->dma_dvma, GFP_ATOMIC); + dbri->dma = dma_zalloc_coherent(&op->dev, sizeof(struct dbri_dma), + &dbri->dma_dvma, GFP_ATOMIC); if (!dbri->dma) return -ENOMEM; - memset((void *)dbri->dma, 0, sizeof(struct dbri_dma)); dprintk(D_GEN, "DMA Cmd Block 0x%p (0x%08x)\n", dbri->dma, dbri->dma_dvma); |