Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325429
b: refs/heads/master
c: bdf7c9d
h: refs/heads/master
i:
  325427: 8499669
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 19, 2012
1 parent ace0028 commit fcef8ac
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 8a3f3d37c58ea44a2441fe8be4d8cd0996fc0c3c
refs/heads/master: bdf7c9dc10912dbad3a5052ee824546535e0b4c1
7 changes: 2 additions & 5 deletions trunk/drivers/staging/comedi/drivers/daqboard2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ Configuration options: not applicable, uses PCI auto config
#define DAQBOARD2000_SUBSYSTEM_IDS2 0x0002 /* Daqboard/2000 - 2 Dacs */
#define DAQBOARD2000_SUBSYSTEM_IDS4 0x0004 /* Daqboard/2000 - 4 Dacs */

#define DAQBOARD2000_DAQ_SIZE 0x1002
#define DAQBOARD2000_PLX_SIZE 0x100

/* Initialization bits for the Serial EEPROM Control Register */
#define DAQBOARD2000_SECRProgPinHi 0x8001767e
#define DAQBOARD2000_SECRProgPinLo 0x8000767e
Expand Down Expand Up @@ -721,9 +718,9 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
dev->iobase = 1; /* the "detach" needs this */

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

Expand Down

0 comments on commit fcef8ac

Please sign in to comment.