Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15208
b: refs/heads/master
c: 87d47d0
h: refs/heads/master
v: v3
  • Loading branch information
Ben Collins authored and Linus Torvalds committed Dec 18, 2005
1 parent 6f2edf8 commit 36611af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 48ea753075aa15699bd5fac26faa08431aaa697b
refs/heads/master: 87d47d0547631e059c308b392cd2423fe9248c93
6 changes: 5 additions & 1 deletion trunk/drivers/message/i2o/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
struct i2o_controller *c;
int rc;
struct pci_dev *i960 = NULL;
int pci_dev_busy = 0;

printk(KERN_INFO "i2o: Checking for PCI I2O controllers...\n");

Expand Down Expand Up @@ -395,6 +396,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
if ((rc = i2o_pci_alloc(c))) {
printk(KERN_ERR "%s: DMA / IO allocation for I2O controller "
" failed\n", c->name);
if (rc == -ENODEV)
pci_dev_busy = 1;
goto free_controller;
}

Expand Down Expand Up @@ -425,7 +428,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
i2o_iop_free(c);

disable:
pci_disable_device(pdev);
if (!pci_dev_busy)
pci_disable_device(pdev);

return rc;
}
Expand Down

0 comments on commit 36611af

Please sign in to comment.