Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325209
b: refs/heads/master
c: 398e6f1
h: refs/heads/master
i:
  325207: 6855081
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent 617c403 commit bcfe1c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: f62608e3d01ecfc66e0d380dbd0a3927a1ca4b4f
refs/heads/master: 398e6f1230160e614ef0f878725cdd5f51fda8cd
14 changes: 4 additions & 10 deletions trunk/drivers/staging/comedi/drivers/adv_pci1710.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ static const struct boardtype boardtypes[] = {
};

struct pci1710_private {
char valid; /* card is usable */
char neverending_ai; /* we do unlimited AI */
unsigned int CntrlReg; /* Control register */
unsigned int i8254_osc_base; /* frequence of onboard oscilator */
Expand Down Expand Up @@ -1433,8 +1432,6 @@ static int pci1710_attach_pci(struct comedi_device *dev,
subdev++;
}

devpriv->valid = 1;

dev_info(dev->class_dev, "%s attached, irq %sabled\n",
dev->board_name, dev->irq ? "en" : "dis");

Expand All @@ -1443,15 +1440,12 @@ static int pci1710_attach_pci(struct comedi_device *dev,

static void pci1710_detach(struct comedi_device *dev)
{
struct pci1710_private *devpriv = dev->private;
struct pci_dev *pcidev = comedi_to_pci_dev(dev);

if (devpriv) {
if (devpriv->valid)
pci1710_reset(dev);
if (dev->irq)
free_irq(dev->irq, dev);
}
if (dev->iobase)
pci1710_reset(dev);
if (dev->irq)
free_irq(dev->irq, dev);
if (pcidev) {
if (dev->iobase)
comedi_pci_disable(pcidev);
Expand Down

0 comments on commit bcfe1c9

Please sign in to comment.