From: Frank Mori Hess Date: Fri, 25 May 2001 21:43:34 +0000 (+0000) Subject: fix so cards on bus 0 can be chosen through configuration options X-Git-Tag: r0_7_59~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c093f0fc8a5e05da0f0bb9c8f05b4db4c2a8f1fa;p=comedi.git fix so cards on bus 0 can be chosen through configuration options --- 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",