projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd388e
)
add missing iounmap in detach
author
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 4 Jul 2005 18:20:43 +0000
(18:20 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 4 Jul 2005 18:20:43 +0000
(18:20 +0000)
comedi/drivers/dt3000.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/dt3000.c
b/comedi/drivers/dt3000.c
index 98f9983196581f433538b29386a5e8bc9d3e9b27..d95d22018c2ffbb48ec1b9a7f1330909f96bf84c 100644
(file)
--- a/
comedi/drivers/dt3000.c
+++ b/
comedi/drivers/dt3000.c
@@
-853,8
+853,11
@@
static int dt3000_detach(comedi_device *dev)
{
if(dev->irq)comedi_free_irq(dev->irq,dev);
- if(devpriv && devpriv->pci_dev) pci_dev_put(devpriv->pci_dev);
-
+ if(devpriv)
+ {
+ if(devpriv->pci_dev) pci_dev_put(devpriv->pci_dev);
+ if(devpriv->io_addr) iounmap(devpriv->io_addr);
+ }
/* XXX */
return 0;