From: Tobias Klauser Subject: [KJ] [PATCH] drivers/media/video/bttv-driver: Remove unneeded call to pci_dma_supported() In bttv-driver.c pci_dma_supported() is called after pci_set_dma_mask() which already did check that for us. The attached patch removes the unneeded call to pci_dma_supported() Signed-off-by: Tobias Klauser --- bttv-driver.c | 5 ----- 1 files changed, 5 deletions(-) Index: quilt/drivers/media/video/bttv-driver.c =================================================================== --- quilt.orig/drivers/media/video/bttv-driver.c +++ quilt/drivers/media/video/bttv-driver.c @@ -3869,11 +3869,6 @@ static int __devinit bttv_probe(struct p pci_set_master(dev); pci_set_command(dev); pci_set_drvdata(dev,btv); - if (!pci_dma_supported(dev,0xffffffff)) { - printk("bttv%d: Oops: no 32bit PCI DMA ???\n", btv->c.nr); - result = -EIO; - goto fail1; - } pci_read_config_byte(dev, PCI_CLASS_REVISION, &btv->revision); pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat);