Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325146
b: refs/heads/master
c: 893be48
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 16db4f9 commit a4220c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: eba16272d1e5b17788bacfb64194b79e3a6b25a3
refs/heads/master: 893be483434a364f3a01127bdbfbdab8c5331501
11 changes: 2 additions & 9 deletions trunk/drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ struct pci9111_private_data {
unsigned int div1;
unsigned int div2;

int is_valid; /* Is device valid */

short ai_bounce_buffer[2 * PCI9111_FIFO_HALF_SIZE];
};

Expand Down Expand Up @@ -1020,8 +1018,6 @@ static int pci9111_attach_pci(struct comedi_device *dev,
s->range_table = &range_digital;
s->insn_bits = pci9111_do_insn_bits;

dev_private->is_valid = 1;

dev_info(dev->class_dev, "%s attached\n", dev->board_name);

return 0;
Expand All @@ -1030,12 +1026,9 @@ static int pci9111_attach_pci(struct comedi_device *dev,
static void pci9111_detach(struct comedi_device *dev)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
struct pci9111_private_data *dev_private = dev->private;

if (dev_private) {
if (dev_private->is_valid)
pci9111_reset(dev);
}
if (dev->iobase)
pci9111_reset(dev);
if (dev->irq != 0)
free_irq(dev->irq, dev);
if (pcidev) {
Expand Down

0 comments on commit a4220c0

Please sign in to comment.