diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-03 07:51:07 -0500 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-03 07:51:07 -0500 |
| commit | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (patch) | |
| tree | c2db1b4958bbf617a25398b7ef93d82006b26a17 /drivers/message | |
| parent | 292d4ed32e35df4755052b5002e533348d1648fd (diff) | |
| parent | 88026842b0a760145aa71d69e74fbc9ec118ca44 (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'drivers/message')
| -rw-r--r-- | drivers/message/i2o/pci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/message/i2o/pci.c b/drivers/message/i2o/pci.c index 81ef306cb124..ee7075fa1ec3 100644 --- a/drivers/message/i2o/pci.c +++ b/drivers/message/i2o/pci.c | |||
| @@ -303,6 +303,7 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, | |||
| 303 | struct i2o_controller *c; | 303 | struct i2o_controller *c; |
| 304 | int rc; | 304 | int rc; |
| 305 | struct pci_dev *i960 = NULL; | 305 | struct pci_dev *i960 = NULL; |
| 306 | int pci_dev_busy = 0; | ||
| 306 | 307 | ||
| 307 | printk(KERN_INFO "i2o: Checking for PCI I2O controllers...\n"); | 308 | printk(KERN_INFO "i2o: Checking for PCI I2O controllers...\n"); |
| 308 | 309 | ||
| @@ -395,6 +396,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, | |||
| 395 | if ((rc = i2o_pci_alloc(c))) { | 396 | if ((rc = i2o_pci_alloc(c))) { |
| 396 | printk(KERN_ERR "%s: DMA / IO allocation for I2O controller " | 397 | printk(KERN_ERR "%s: DMA / IO allocation for I2O controller " |
| 397 | " failed\n", c->name); | 398 | " failed\n", c->name); |
| 399 | if (rc == -ENODEV) | ||
| 400 | pci_dev_busy = 1; | ||
| 398 | goto free_controller; | 401 | goto free_controller; |
| 399 | } | 402 | } |
| 400 | 403 | ||
| @@ -425,7 +428,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, | |||
| 425 | i2o_iop_free(c); | 428 | i2o_iop_free(c); |
| 426 | 429 | ||
| 427 | disable: | 430 | disable: |
| 428 | pci_disable_device(pdev); | 431 | if (!pci_dev_busy) |
| 432 | pci_disable_device(pdev); | ||
| 429 | 433 | ||
| 430 | return rc; | 434 | return rc; |
| 431 | } | 435 | } |
