Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337742
b: refs/heads/master
c: c965c8b
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 78d56e8 commit 7b3b4a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: 891e62c33d9cdbcdb8adfaddd111e91a39d0f5fe
refs/heads/master: c965c8b7d2538d10d77a320e84ddbe51d221f373
4 changes: 3 additions & 1 deletion trunk/drivers/staging/comedi/drivers/addi-data/addi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ static int __devinit addi_auto_attach(struct comedi_device *dev,
return ret;

if (!this_board->pc_EepromChip ||
!strcmp(this_board->pc_EepromChip, ADDIDATA_9054)) {
strcmp(this_board->pc_EepromChip, ADDIDATA_9054)) {
/* board does not have an eeprom or is not ADDIDATA_9054 */
if (this_board->i_IorangeBase1)
dev->iobase = pci_resource_start(pcidev, 1);
else
Expand All @@ -129,6 +130,7 @@ static int __devinit addi_auto_attach(struct comedi_device *dev,
devpriv->i_IobaseAmcc = pci_resource_start(pcidev, 0);
devpriv->i_IobaseAddon = pci_resource_start(pcidev, 2);
} else {
/* board has an ADDIDATA_9054 eeprom */
dev->iobase = pci_resource_start(pcidev, 2);
devpriv->iobase = pci_resource_start(pcidev, 2);
devpriv->dw_AiBase = ioremap(pci_resource_start(pcidev, 3),
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/addi_apci_1032.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static int __devinit apci1032_auto_attach(struct comedi_device *dev,
if (ret)
return ret;

dev->iobase = pci_resource_start(pcidev, 2);
dev->iobase = pci_resource_start(pcidev, 1);

if (pcidev->irq > 0) {
ret = request_irq(pcidev->irq, apci1032_interrupt, IRQF_SHARED,
Expand Down

0 comments on commit 7b3b4a4

Please sign in to comment.