media: tw686x: audio: Avoid non-standard macro usage
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 07:01:47 +0000 (08:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Nov 2019 08:14:01 +0000 (09:14 +0100)
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>
drivers/media/pci/tw686x/tw686x-audio.c

index 40373bd2338165c859d750f230e9b3797e99224f..7786e51d19ae6b119c8523d3f24c245850a0aa83 100644 (file)
@@ -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;