Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324523
b: refs/heads/master
c: b751888
h: refs/heads/master
i:
  324521: 0b18d5e
  324519: 0ab0db9
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent d2b06b4 commit dc9e10b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d99ff52ef1da75053de9e42a620930f74615f8ea
refs/heads/master: b7518888afc14e3d1e988837fef4471cd2b3c820
14 changes: 8 additions & 6 deletions trunk/drivers/staging/comedi/drivers/amplc_dio200.c
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,6 @@ static int __devinit dio200_attach_pci(struct comedi_device *dev,
static void dio200_detach(struct comedi_device *dev)
{
const struct dio200_board *thisboard = comedi_board(dev);
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
const struct dio200_layout_struct *layout;
unsigned n;

Expand All @@ -1442,13 +1441,16 @@ static void dio200_detach(struct comedi_device *dev)
}
}
}
if (pcidev) {
if (dev->iobase)
comedi_pci_disable(pcidev);
pci_dev_put(pcidev);
} else {
if (IS_ISA_BOARD(thisboard)) {
if (dev->iobase)
release_region(dev->iobase, DIO200_IO_SIZE);
} else if (IS_PCI_BOARD(thisboard)) {
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
if (pcidev) {
if (dev->iobase)
comedi_pci_disable(pcidev);
pci_dev_put(pcidev);
}
}
}

Expand Down

0 comments on commit dc9e10b

Please sign in to comment.