From: Christoph Hellwig Date: Wed, 21 Oct 2015 22:13:23 +0000 (+1100) Subject: cx23885: use pci_set_dma_mask insted of pci_dma_supported X-Git-Tag: KARO-TXUL-2015-12-04~30^2~24 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=fe35f0e0d2ba319f1c80fdd95597c3ce9b61f69c cx23885: use pci_set_dma_mask insted of pci_dma_supported This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Cc: Pawel Osciak Signed-off-by: Andrew Morton --- diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c index bc1c9602f435..35759a91d47d 100644 --- a/drivers/media/pci/cx23885/cx23885-core.c +++ b/drivers/media/pci/cx23885/cx23885-core.c @@ -1992,7 +1992,7 @@ static int cx23885_initdev(struct pci_dev *pci_dev, (unsigned long long)pci_resource_start(pci_dev, 0)); pci_set_master(pci_dev); - if (!pci_dma_supported(pci_dev, 0xffffffff)) { + if (!pci_set_dma_mask(pci_dev, 0xffffffff)) { printk("%s/0: Oops: no 32bit PCI DMA ???\n", dev->name); err = -EIO; goto fail_context;