Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318097
b: refs/heads/master
c: 6d2d7ef
h: refs/heads/master
i:
  318095: af0d297
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 19, 2012
1 parent 2a25acf commit bcbc5eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 6191a3ff59ed91ed3efd7a4a5fcad0368c199f28
refs/heads/master: 6d2d7ef7315cb40549baec7bb13dccfcf5162225
5 changes: 1 addition & 4 deletions trunk/drivers/staging/comedi/drivers/cb_pcimdas.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ See http://www.mccdaq.com/PDFs/Manuals/pcim-das1602-16.pdf for more details.
/* Registers for the PCIM-DAS1602/16 */

/* sizes of io regions (bytes) */
#define BADR0_SIZE 2 /* ?? */
#define BADR3_SIZE 16

/* DAC Offsets */
Expand Down Expand Up @@ -135,7 +134,6 @@ struct cb_pcimdas_private {
struct pci_dev *pci_dev;

/* base addresses */
unsigned long BADR0;
unsigned long BADR3;

/* Used for AO readback */
Expand Down Expand Up @@ -230,7 +228,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev,
return -EIO;
}

devpriv->BADR0 = pci_resource_start(devpriv->pci_dev, 0);
dev->iobase = pci_resource_start(devpriv->pci_dev, 2);
devpriv->BADR3 = pci_resource_start(devpriv->pci_dev, 3);
iobase_8255 = pci_resource_start(devpriv->pci_dev, 4);
Expand Down Expand Up @@ -290,7 +287,7 @@ static void cb_pcimdas_detach(struct comedi_device *dev)
free_irq(dev->irq, dev);
if (devpriv) {
if (devpriv->pci_dev) {
if (devpriv->BADR0)
if (dev->iobase)
comedi_pci_disable(devpriv->pci_dev);
pci_dev_put(devpriv->pci_dev);
}
Expand Down

0 comments on commit bcbc5eb

Please sign in to comment.