From: Frank Mori Hess Date: Fri, 20 Jul 2001 15:23:30 +0000 (+0000) Subject: 2.4 kernel pci fixes X-Git-Tag: r0_7_60~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9187860a544eea72088cf61e07dc94b344b0810c;p=comedi.git 2.4 kernel pci fixes --- diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 334bf7a1..b9282b19 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -419,6 +419,7 @@ found: devpriv->pci_dev->base_address[AO_BADRINDEX] & PCI_BASE_ADDRESS_IO_MASK; #else + pci_enable_device(pci_dev); s5933_config = devpriv->pci_dev->resource[S5933_BADRINDEX].start & PCI_BASE_ADDRESS_IO_MASK; diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index 14fa7ecf..7d008a63 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -593,8 +593,9 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it) pci_iobase = pdev->base_address[1] & PCI_BASE_ADDRESS_IO_MASK; iobase = pdev->base_address[2] & PCI_BASE_ADDRESS_IO_MASK; #else - pci_iobase = pdev->resource[1].start; - iobase = pdev->resource[2].start; + pci_enable_device(pdev); + pci_iobase = pdev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK; + iobase = pdev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK; #endif // reserve io ports for 9052 pci chip