From: Frank Mori Hess Date: Tue, 17 Apr 2001 20:42:37 +0000 (+0000) Subject: fixed unresolved symbol problem due to merging of free_resources and _detach functions X-Git-Tag: r0_7_59~114 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b9cf119aa6676bf1a4d78027fe79755f71195ced;p=comedi.git fixed unresolved symbol problem due to merging of free_resources and _detach functions --- 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);