Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df10f4ed authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

[PATCH] i2o: Switch to pci_get API



Use the safe ref-counted API for the bridge check

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1aff0eca
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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;