diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-10-01 08:27:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 09:39:23 +0200 |
commit | df10f4edd5f097251c62f1d4a3adea778100b4a8 (patch) | |
tree | b5f7ba2e0ed805de67f9a9774d982a08e4f291df /drivers/message/i2o | |
parent | [PATCH] ip2: use newer pci_get functions (diff) | |
download | linux-df10f4edd5f097251c62f1d4a3adea778100b4a8.tar.xz linux-df10f4edd5f097251c62f1d4a3adea778100b4a8.zip |
[PATCH] i2o: Switch to pci_get API
Use the safe ref-counted API for the bridge check
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/message/i2o')
-rw-r--r-- | drivers/message/i2o/pci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/message/i2o/pci.c b/drivers/message/i2o/pci.c index 1b58444d5aaf..dec41cc89937 100644 --- a/drivers/message/i2o/pci.c +++ b/drivers/message/i2o/pci.c @@ -372,12 +372,13 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, * Expose the ship behind i960 for initialization, or it will * failed */ - i960 = - pci_find_slot(c->pdev->bus->number, + i960 = pci_get_slot(c->pdev->bus, PCI_DEVFN(PCI_SLOT(c->pdev->devfn), 0)); - if (i960) + if (i960) { pci_write_config_word(i960, 0x42, 0); + pci_dev_put(i960); + } c->promise = 1; c->limit_sectors = 1; |