V4L/DVB (5488): Replace DMA magic mask for its aliases
authorMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 30 Mar 2007 13:58:01 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:45:20 +0000 (15:45 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-alsa.c
drivers/media/video/cx88/cx88-mpeg.c
drivers/media/video/cx88/cx88-video.c

index 5a8f18f8ddbb14cbee9cd035c04fbc0994b2d7eb..6c22ec4b0836efbb5ffcdbd4d6aebb0fa666a072 100644 (file)
@@ -683,7 +683,7 @@ static int __devinit snd_cx88_create(struct snd_card *card,
                return err;
        }
 
-       if (!pci_dma_supported(pci,0xffffffff)) {
+       if (!pci_dma_supported(pci,DMA_32BIT_MASK)) {
                dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n",core->name);
                err = -EIO;
                cx88_core_put(core,pci);
index def939d435d59e725032bb865643e56a7898178e..b2eb32e01aeeb6774407b6e64e90bb73e8475de1 100644 (file)
@@ -449,7 +449,7 @@ int cx8802_init_common(struct cx8802_dev *dev)
        if (pci_enable_device(dev->pci))
                return -EIO;
        pci_set_master(dev->pci);
-       if (!pci_dma_supported(dev->pci,0xffffffff)) {
+       if (!pci_dma_supported(dev->pci,DMA_32BIT_MASK)) {
                printk("%s/2: Oops: no 32bit PCI DMA ???\n",dev->core->name);
                return -EIO;
        }
index 5ae5c02644e9e7e0f653b97d3649e18d6f4a57ff..fbce1d50578bf39ca880f053005931e517798b71 100644 (file)
@@ -1779,7 +1779,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
               dev->pci_lat,(unsigned long long)pci_resource_start(pci_dev,0));
 
        pci_set_master(pci_dev);
-       if (!pci_dma_supported(pci_dev,0xffffffff)) {
+       if (!pci_dma_supported(pci_dev,DMA_32BIT_MASK)) {
                printk("%s/0: Oops: no 32bit PCI DMA ???\n",core->name);
                err = -EIO;
                goto fail_core;