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) ...@@ -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) { if (!pdev) {
return; return;
} }
...@@ -342,7 +342,7 @@ void __init ebus_init(void) ...@@ -342,7 +342,7 @@ void __init ebus_init(void)
} }
next_ebus: next_ebus:
pdev = pci_find_device(PCI_VENDOR_ID_SUN, pdev = pci_get_device(PCI_VENDOR_ID_SUN,
PCI_DEVICE_ID_SUN_EBUS, pdev); PCI_DEVICE_ID_SUN_EBUS, pdev);
if (!pdev) if (!pdev)
break; break;
...@@ -356,4 +356,6 @@ void __init ebus_init(void) ...@@ -356,4 +356,6 @@ void __init ebus_init(void)
ebus->next = 0; ebus->next = 0;
++num_ebus; ++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