Fix compilation for PCI code
authorDavid Schleef <ds@schleef.org>
Thu, 28 Jun 2001 23:31:16 +0000 (23:31 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 28 Jun 2001 23:31:16 +0000 (23:31 +0000)
comedi/drivers/cb_pcidas.c

index a68b942d2df438cdb69cce01932a29ac60a76294..d00512a3dab1af4bd0950282e161e11d4ebb6887 100644 (file)
@@ -436,7 +436,7 @@ found:
                PCI_BASE_ADDRESS_IO_MASK;
 #else
        s5933_config =
-               devpriv->pci_dev->resource[S5933_BADRINDEX] &
+               devpriv->pci_dev->resource[S5933_BADRINDEX].start &
                PCI_BASE_ADDRESS_IO_MASK;
        control_status =
                devpriv->pci_dev->resource[CONT_STAT_BADRINDEX].start &
@@ -445,10 +445,10 @@ found:
                devpriv->pci_dev->resource[ADC_FIFO_BADRINDEX].start &
                PCI_BASE_ADDRESS_IO_MASK;
        pacer_counter_dio =
-               devpriv->pci_dev->resource[PACER_BADRINDEX] &
+               devpriv->pci_dev->resource[PACER_BADRINDEX].start &
                PCI_BASE_ADDRESS_IO_MASK;
        ao_registers =
-               devpriv->pci_dev->resource[AO_BADRINDEX] &
+               devpriv->pci_dev->resource[AO_BADRINDEX].start &
                PCI_BASE_ADDRESS_IO_MASK;
 #endif