diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-05 16:18:54 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-06 15:47:43 +0100 |
commit | 1a810436a2eff372aa1a934fe4d1bef50bd9dac8 (patch) | |
tree | 7a3d2f36a9e7bc389586a0793fa17479f0a647ce /sound/pci/rme9652/hdspm.c | |
parent | af7153a29d5f0bed1f62b5347dc6cce291d40d69 (diff) | |
download | linux-1a810436a2eff372aa1a934fe4d1bef50bd9dac8.tar.gz linux-1a810436a2eff372aa1a934fe4d1bef50bd9dac8.tar.bz2 linux-1a810436a2eff372aa1a934fe4d1bef50bd9dac8.zip |
ALSA: rme: Avoid non-standard macro usage
Pass the device pointer from the PCI pointer directly, instead of a
non-standard macro. The macro didn't give any better readability.
Along with it, drop the unnecessary assignment before the
snd_dma_alloc_pages() call and simplify by returning the error code
directly.
Link: https://lore.kernel.org/r/20191105151856.10785-23-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme9652/hdspm.c')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index b571d9d017bb..75c06a7cc779 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -6406,7 +6406,7 @@ static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) wanted = HDSPM_DMA_AREA_BYTES; snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, - snd_dma_pci_data(hdspm->pci), + &hdspm->pci->dev, wanted, wanted); dev_dbg(hdspm->card->dev, " Preallocated %zd Bytes\n", wanted); return 0; |