Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324593
b: refs/heads/master
c: c8dd8e9
h: refs/heads/master
i:
  324591: 3ba5790
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Aug 17, 2012
1 parent 1f89417 commit ea1e8e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 08c3c4077857a7c56b76d1b5b9d50ae3f8190424
refs/heads/master: c8dd8e934087cc0ecf7033786ee00cff4ebcba4f
7 changes: 1 addition & 6 deletions trunk/drivers/staging/comedi/drivers/cb_pcimdda.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ struct cb_pcimdda_board {
unsigned short device_id;
int ao_chans;
int ao_bits;
int regs_badrindex; /* IO Region for the control, analog output,
and DIO registers */
int reg_sz; /* number of bytes of registers in io region */
};

static const struct cb_pcimdda_board cb_pcimdda_boards[] = {
Expand All @@ -118,8 +115,6 @@ static const struct cb_pcimdda_board cb_pcimdda_boards[] = {
.device_id = PCI_ID_PCIM_DDA06_16,
.ao_chans = 6,
.ao_bits = 16,
.regs_badrindex = 3,
.reg_sz = 16,
}
};

Expand Down Expand Up @@ -252,7 +247,7 @@ static int cb_pcimdda_attach(struct comedi_device *dev,
ret = comedi_pci_enable(pcidev, dev->board_name);
if (ret)
return ret;
dev->iobase = pci_resource_start(pcidev, thisboard->regs_badrindex);
dev->iobase = pci_resource_start(pcidev, 3);

ret = comedi_alloc_subdevices(dev, 2);
if (ret)
Expand Down

0 comments on commit ea1e8e1

Please sign in to comment.