Skip to content

Commit

Permalink
[PATCH] i2o: Switch to pci_get API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 1, 2006
1 parent 1aff0ec commit df10f4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/message/i2o/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df10f4e

Please sign in to comment.