ALSA: pci: Avoid non-standard macro usage
[linux-2.6-block.git] / sound / pci / bt87x.c
index d4b6da79ef49f4ed5d6cf666ed1205f98bcc3654..6bf5ac3600c5422cb2578b07ff447d965b5b30a5 100644 (file)
@@ -217,7 +217,7 @@ static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substrea
        __le32 *risc;
 
        if (chip->dma_risc.area == NULL) {
-               if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci),
+               if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
                                        PAGE_ALIGN(MAX_RISC_SIZE), &chip->dma_risc) < 0)
                        return -ENOMEM;
        }
@@ -700,7 +700,7 @@ static int snd_bt87x_pcm(struct snd_bt87x *chip, int device, char *name)
        strcpy(pcm->name, name);
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_bt87x_pcm_ops);
        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
-                                             snd_dma_pci_data(chip->pci),
+                                             &chip->pci->dev,
                                              128 * 1024,
                                              ALIGN(255 * 4092, 1024));
        return 0;