Commit 581484d2 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] ebus.c: replace pci_find_device with pci_get_device

Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 991c07fd
......@@ -275,7 +275,7 @@ void __init ebus_init(void)
}
}
pdev = pci_find_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_EBUS, 0);
pdev = pci_get_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_EBUS, 0);
if (!pdev) {
return;
}
......@@ -342,7 +342,7 @@ void __init ebus_init(void)
}
next_ebus:
pdev = pci_find_device(PCI_VENDOR_ID_SUN,
pdev = pci_get_device(PCI_VENDOR_ID_SUN,
PCI_DEVICE_ID_SUN_EBUS, pdev);
if (!pdev)
break;
......@@ -356,4 +356,6 @@ void __init ebus_init(void)
ebus->next = 0;
++num_ebus;
}
if (pdev)
pci_dev_put(pdev);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment