From 52855056bb7a1bbd405e992534e9793e505d1120 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 21 Nov 2002 04:33:53 +0000 Subject: [PATCH] fix request_region on 2.2 --- comedi/drivers/cb_pcimdda.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/comedi/drivers/cb_pcimdda.c b/comedi/drivers/cb_pcimdda.c index 73797f38..aca208e7 100644 --- a/comedi/drivers/cb_pcimdda.c +++ b/comedi/drivers/cb_pcimdda.c @@ -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; -- 2.26.2