Corrected error in previous commit (PCI bus/slot option support).
authorIan Abbott <abbotti@mev.co.uk>
Mon, 14 Apr 2008 14:58:50 +0000 (14:58 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 14 Apr 2008 14:58:50 +0000 (14:58 +0000)
comedi/drivers/dt3000.c

index 7c403e45ed31b88136c020e290139435269b243a..ef131cc9d19d090b1688b7062eeefe2d899b57cd 100644 (file)
@@ -919,7 +919,7 @@ static int dt_pci_probe(comedi_device * dev, int bus, int slot)
        while ((pcidev = dt_pci_find_device(pcidev, &board)) != NULL) {
                if ((bus == 0 && slot == 0) ||
                        (pcidev->bus->number == bus &&
-                        PCI_SLOT(pcidev->devfn == slot))) {
+                        PCI_SLOT(pcidev->devfn) == slot)) {
                        break;
                }
        }