Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325530
b: refs/heads/master
c: 58f4a8f
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 60edfc7 commit d7f7551
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 41f821d07729d1c3d59d1ebebf4c57e2ffe0a37c
refs/heads/master: 58f4a8fce1d6f1e42543376c85839576992e6100
6 changes: 2 additions & 4 deletions trunk/drivers/staging/comedi/drivers/s626.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ INSN_CONFIG instructions:

struct s626_private {
void __iomem *base_addr;
int got_regions;
short allocatedBuf;
uint8_t ai_cmd_running; /* ai_cmd is running */
uint8_t ai_continous; /* continous acquisition */
Expand Down Expand Up @@ -2460,7 +2459,7 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)
ret = comedi_pci_enable(pcidev, dev->board_name);
if (ret)
return ret;
devpriv->got_regions = 1;
dev->iobase = 1; /* detach needs this */

resourceStart = pci_resource_start(pcidev, 0);

Expand Down Expand Up @@ -2512,7 +2511,6 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)
if (ret)
return ret;

dev->iobase = (unsigned long)devpriv->base_addr;
dev->irq = pcidev->irq;

/* set up interrupt handler */
Expand Down Expand Up @@ -2893,7 +2891,7 @@ static void s626_detach(struct comedi_device *dev)
iounmap(devpriv->base_addr);
}
if (pcidev) {
if (devpriv->got_regions)
if (dev->iobase)
comedi_pci_disable(pcidev);
}
}
Expand Down

0 comments on commit d7f7551

Please sign in to comment.