fixed unresolved symbol problem due to merging of free_resources and _detach functions
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 17 Apr 2001 20:42:37 +0000 (20:42 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 17 Apr 2001 20:42:37 +0000 (20:42 +0000)
comedi/drivers/pcl711.c

index e64096e2d3b6c678ac40fa87684fbddeec396e32..0c47114fedbad8d5a9527c3690ac13639a2953bf 100644 (file)
@@ -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);