fix request_region on 2.2
authorDavid Schleef <ds@schleef.org>
Thu, 21 Nov 2002 04:33:53 +0000 (04:33 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 21 Nov 2002 04:33:53 +0000 (04:33 +0000)
comedi/drivers/cb_pcimdda.c

index 73797f3861896d7ab24a48156586d99881972388..aca208e7d1b35abb00a4ba02b41a42650d5034ee 100644 (file)
@@ -476,7 +476,8 @@ static int probe(comedi_device *dev, const comedi_devconfig *it)
                        pci_enable_device(devpriv->pci_dev); /* make sure board is on */
                        dev->board_ptr = boards + index;
                        registers = pci_resource_start(devpriv->pci_dev, REGS_BADRINDEX);
-                       if (!request_region(registers, REG_SZ,thisboard->name))
+                       request_region(registers, REG_SZ,thisboard->name);
+#if 0
                        {
                          printk("cb_pcimdda: "
                                 "I/O port conflict failed to allocate ports "
@@ -484,6 +485,7 @@ static int probe(comedi_device *dev, const comedi_devconfig *it)
                                 registers + REG_SZ - 1);
                          return -EBUSY;
                        }
+#endif
                        devpriv->registers = registers;                        
                        devpriv->dio_registers 
                          = devpriv->registers + thisboard->dio_offset;