From b9cf119aa6676bf1a4d78027fe79755f71195ced Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 17 Apr 2001 20:42:37 +0000 Subject: [PATCH] fixed unresolved symbol problem due to merging of free_resources and _detach functions --- comedi/drivers/pcl711.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/pcl711.c b/comedi/drivers/pcl711.c index e64096e2..0c47114f 100644 --- a/comedi/drivers/pcl711.c +++ b/comedi/drivers/pcl711.c @@ -401,6 +401,8 @@ static int pcl711_detach(comedi_device * dev) if (dev->iobase) release_region(dev->iobase, PCL711_SIZE); + + return 0; } /* Initialization */ @@ -431,13 +433,11 @@ static int pcl711_attach(comedi_device * dev, comedi_devconfig * it) irq = it->options[1]; if (irq < 0 || irq > this_board->maxirq) { printk("irq out of range\n"); - free_resources(dev); return -EINVAL; } if (irq) { if (comedi_request_irq(irq, pcl711_interrupt, 0, "pcl711", dev)) { printk("unable to allocate irq %d\n", irq); - free_resources(dev); return -EINVAL; } else { printk("( irq = %d )\n", irq); -- 2.26.2