From c093f0fc8a5e05da0f0bb9c8f05b4db4c2a8f1fa Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 25 May 2001 21:43:34 +0000 Subject: [PATCH] fix so cards on bus 0 can be chosen through configuration options --- comedi/drivers/cb_pcidas.c | 2 +- comedi/drivers/rtd520.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 07d66c49..e028f5e2 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -283,7 +283,7 @@ static int cb_pcidas_attach(comedi_device *dev, comedi_devconfig *it) pci_for_each_dev(pcidev){ if(pcidev->vendor==PCI_VENDOR_CB){ - if(it->options[0] && it->options[1]){ + if(it->options[0] || it->options[1]){ if(pcidev->bus->number==it->options[0] && PCI_SLOT(pcidev->devfn)==it->options[1]){ break; diff --git a/comedi/drivers/rtd520.c b/comedi/drivers/rtd520.c index 87ddb13e..c37e92ad 100644 --- a/comedi/drivers/rtd520.c +++ b/comedi/drivers/rtd520.c @@ -578,7 +578,7 @@ static int rtd_attach ( */ pci_for_each_dev (pcidev) { if (pcidev->vendor == RTD_VENDOR_ID) { - if (it->options[0] && it->options[1]) { + if (it->options[0] || it->options[1]) { if (pcidev->bus->number == it->options[0] && PCI_SLOT(pcidev->devfn) == it->options[1]) { printk("rtd520: found bus=%d slot=%d\n", -- 2.26.2