/* Look for an IDE driver to handle the device we are considering. This is only used during boot up to get the ordering correct. After boot up the pci layer takes over the job.  */
static int __init ide_scan_pcidev(struct pci_dev *dev)
/* Look for an IDE driver to handle the device we are considering. This is only used during boot up to get the ordering correct. After boot up the pci layer takes over the job.  */
static int __init ide_scan_pcidev(struct pci_dev *dev)
{
	struct list_head *l;
	struct pci_driver *d;
	list_for_each(l, &ide_pci_drivers) {
		d = list_entry(l, struct pci_driver, node);
		if (d->id_table) {
			const struct pci_device_id *id =
				pci_match_id(d->id_table, dev);
			if (id != NULL && d->probe(dev, id) >= 0) {
				dev->driver = d;
				pci_dev_get(dev);
				return 1;
			}
		}
	}
	return 0;
}