Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324967
b: refs/heads/master
c: f4c772f
h: refs/heads/master
i:
  324965: 35ebd03
  324963: 0ecb693
  324959: a9d0ad5
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 8, 2012
1 parent 5801e58 commit 5a0bc6d
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 4b2f15f138f75c15f42015110af111a95f30ed22
refs/heads/master: f4c772f0c3d6477ab18af8bd8ac239049a1af6a5
13 changes: 6 additions & 7 deletions trunk/drivers/staging/comedi/drivers/me4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,6 @@ static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it)
}
dev->board_ptr = me4000_boards + i;
board = comedi_board(dev);
info->pci_dev_p = pci_device;
goto found;
}
}
Expand All @@ -1787,6 +1786,7 @@ static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it)
return -ENODEV;

found:
comedi_set_hw_dev(dev, &pci_device->dev);
dev->board_name = board->name;

result = comedi_pci_enable(pci_device, dev->board_name);
Expand Down Expand Up @@ -1944,15 +1944,14 @@ static int me4000_attach(struct comedi_device *dev, struct comedi_devconfig *it)

static void me4000_detach(struct comedi_device *dev)
{
struct me4000_info *info = dev->private;
struct pci_dev *pcidev = comedi_to_pci_dev(dev);

if (info) {
if (info->pci_dev_p) {
if (pcidev) {
if (dev->iobase) {
reset_board(dev);
if (info->plx_regbase)
comedi_pci_disable(info->pci_dev_p);
pci_dev_put(info->pci_dev_p);
comedi_pci_disable(pcidev);
}
pci_dev_put(pcidev);
}
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/comedi/drivers/me4000.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ struct me4000_info {
unsigned long timer_regbase; /* Base address of the timer circuit */
unsigned long program_regbase; /* Base address to set the program pin for the xilinx */

struct pci_dev *pci_dev_p; /* General PCI information */

unsigned int ao_readback[4];
};

Expand Down

0 comments on commit 5a0bc6d

Please sign in to comment.