ALSA: pci: Avoid non-standard macro usage
[linux-2.6-block.git] / sound / pci / als4000.c
index b06c3dbb525d29abdbb7b7cf35a9fc3f1c92a9c8..d6f5487afe52cc224fe36d2da83d8725b47be9a7 100644 (file)
@@ -693,7 +693,8 @@ static int snd_als4000_pcm(struct snd_sb *chip, int device)
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_als4000_playback_ops);
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_als4000_capture_ops);
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci),
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             &chip->pci->dev,
                                              64*1024, 64*1024);
 
        chip->pcm = pcm;