From: Frank Mori Hess Date: Mon, 28 Feb 2005 00:08:15 +0000 (+0000) Subject: don't use deprecated pci_find_subsys(), replace with pci_get_subsys() X-Git-Tag: r0_7_70~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c239e809f88775f79fabfdabebc1274f823724ba;p=comedi.git don't use deprecated pci_find_subsys(), replace with pci_get_subsys() (and pci_dev_put()) --- diff --git a/comedi/drivers/gsc_hpdi.c b/comedi/drivers/gsc_hpdi.c index 5281ef48..00b5b104 100644 --- a/comedi/drivers/gsc_hpdi.c +++ b/comedi/drivers/gsc_hpdi.c @@ -548,7 +548,7 @@ static int hpdi_attach(comedi_device *dev, comedi_devconfig *it) { do { - pcidev = pci_find_subsys( PCI_VENDOR_ID_PLX, hpdi_boards[ i ].device_id, + pcidev = pci_get_subsys( PCI_VENDOR_ID_PLX, hpdi_boards[ i ].device_id, PCI_VENDOR_ID_PLX, hpdi_boards[ i ].subdevice_id, pcidev ); // was a particular bus/slot requested? if( it->options[0] || it->options[1] ) @@ -678,9 +678,9 @@ static int hpdi_detach(comedi_device *dev) pci_free_consistent( priv(dev)->hw_dev, sizeof( struct plx_dma_desc ) * NUM_DMA_DESCRIPTORS, priv(dev)->dma_desc, priv(dev)->dma_desc_phys_addr ); pci_disable_device( priv(dev)->hw_dev ); + pci_dev_put(priv(dev)->hw_dev); } } - return 0; }