2.4 kernel pci fixes
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 20 Jul 2001 15:23:30 +0000 (15:23 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 20 Jul 2001 15:23:30 +0000 (15:23 +0000)
comedi/drivers/cb_pcidas.c
comedi/drivers/das08.c

index 334bf7a158a7f87497cd49a216df80cd59e1daac..b9282b196c4461f0ba383f26dea0c32f1eb6e7b9 100644 (file)
@@ -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;
index 14fa7ecf6ecaea062e1ef9fb77429039601ccbcb..7d008a631d10e6a9d23271012d3bdbf7129798b3 100644 (file)
@@ -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