vserver 1.9.5.x5
[linux-2.6.git] / arch / sparc / kernel / ebus.c
index 8ae7e5d..1754192 100644 (file)
@@ -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);
 }