projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab5286
)
fixed unresolved symbol problem due to merging of free_resources and _detach functions
author
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 17 Apr 2001 20:42:37 +0000
(20:42 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 17 Apr 2001 20:42:37 +0000
(20:42 +0000)
comedi/drivers/pcl711.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/pcl711.c
b/comedi/drivers/pcl711.c
index e64096e2d3b6c678ac40fa87684fbddeec396e32..0c47114fedbad8d5a9527c3690ac13639a2953bf 100644
(file)
--- 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);