diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-05 08:01:47 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-11 09:14:01 +0100 |
commit | 3b316a8f6077a0003331aae43f02279ea62d54f9 (patch) | |
tree | 29e389def2ae5371bd71fa2817ae99321e243230 | |
parent | ef99d99b2fd921148dc15e706f2fb071ba3fee6c (diff) |
media: tw686x: audio: 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.
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | drivers/media/pci/tw686x/tw686x-audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/tw686x/tw686x-audio.c b/drivers/media/pci/tw686x/tw686x-audio.c index 40373bd23381..7786e51d19ae 100644 --- a/drivers/media/pci/tw686x/tw686x-audio.c +++ b/drivers/media/pci/tw686x/tw686x-audio.c @@ -300,7 +300,7 @@ static int tw686x_snd_pcm_init(struct tw686x_dev *dev) snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, - snd_dma_pci_data(dev->pci_dev), + &dev->pci_dev->dev, TW686X_AUDIO_PAGE_MAX * AUDIO_DMA_SIZE_MAX, TW686X_AUDIO_PAGE_MAX * AUDIO_DMA_SIZE_MAX); return 0; |