Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325430
b: refs/heads/master
c: 0352b93
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 19, 2012
1 parent fcef8ac commit b246620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: bdf7c9dc10912dbad3a5052ee824546535e0b4c1
refs/heads/master: 0352b932be274d0d67b02f93fe94e30e57265f85
9 changes: 4 additions & 5 deletions trunk/drivers/staging/comedi/drivers/daqboard2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,6 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
const struct daq200_boardtype *board;
struct daqboard2000_private *devpriv;
struct comedi_subdevice *s;
resource_size_t pci_base;
int result;

comedi_set_hw_dev(dev, &pcidev->dev);
Expand All @@ -717,10 +716,10 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
return result;
dev->iobase = 1; /* the "detach" needs this */

pci_base = pci_resource_start(pcidev, 0);
devpriv->plx = ioremap(pci_base, pci_resource_len(pcidev, 0));
pci_base = pci_resource_start(pcidev, 2);
devpriv->daq = ioremap(pci_base, pci_resource_len(pcidev, 2));
devpriv->plx = ioremap(pci_resource_start(pcidev, 0),
pci_resource_len(pcidev, 0));
devpriv->daq = ioremap(pci_resource_start(pcidev, 2),
pci_resource_len(pcidev, 2));
if (!devpriv->plx || !devpriv->daq)
return -ENOMEM;

Expand Down

0 comments on commit b246620

Please sign in to comment.